This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to convert fastq to BAM

Hi! I would like to convert fastq file to bam i in oneliner: I have tried:

bowtie2 -x {input.index}/hg19.zip -U {input.fastq} | samtools view -b -o {output}

but it does not work. Anyone know how to do it? Kindly help.

fastq bam

1 answer

See answer click -> : Piping bowtie2 output directly into BAM

I used: bowtie2 -x {input.index}/hg19.zip -U {input.fastq} | samtools view -bS -> {output}.bam from the site you have sent but I still have an error: Missing input files for rule fastq2bam: file.sam

but I still have an error: Missing input files for rule fastq2bam: file.sam

it's unrelated to your question. You have a problem with snakemake, not bowtie.

Thanks! I know where was a problem

Log in to answer this question.