How to convert fastq to BAM
1
0
Entering edit mode
9 days ago
ja4123 • 0

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 • 306 views
ADD COMMENT
0
Entering edit mode

this is a useful link from the htslib docs https://www.htslib.org/workflow/fastq.html

if you wanted to use bowtie instead of minimap2, you can swap it out

ADD REPLY
1
Entering edit mode
9 days ago
GenoMax 115k

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

ADD COMMENT
0
Entering edit mode

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

ADD REPLY
1
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

Thanks! I know where was a problem

ADD REPLY

Login before adding your answer.

Traffic: 2614 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6