Entering edit mode
2.5 years ago
aya
•
0
This error appears while doing a loop for the kallisto aligner " sed: -e expression #1, char 23: unknown option to `s' " and here is the loop:
for i in *.fastq; do SAMPLE=$(echo ${i}| sed "s/_1\.fastq/.kallisto//"); echo kallisto quant -i transcriptome.idx -o ${SAMPLE}_allign_1 -p ${SAMPLE}_allign_2 ${SAMPLE}_trim_1.fastq ${SAMPLE}_trim_2.fastq; done
It looks like you've got an extra slash in your sed statement. Assuming that you want to replace "_1.fastq" with ".kallisto", then:
should probably be:
But is that what you're actually trying to do?