我有一个bash shell脚本,编写该脚本可从终端接收输入:
echo -e "\e[35mAre the reads paired-end?\e[0m"
read response
if [[ "$response" == [yY]es ]];
then
mkdir ~/Data/FungiSeq/Run_$run_number/Sequences_Quality_Improvement/Paired-end
echo -e "\e[93mA paired-end sub-folder was created\e[0m"
else
echo -e "\e[93mYou are using the wrong script - this is for paired end reads only\e[0m"
fi
但是,当我在bash内核中的Jupyter笔记本中运行脚本时,它不会读取回显响应。
是否有与python3 input()
函数等效的函数?在哪里打开新的命令栏?