Convert fastq to plink .bed
1
0
Entering edit mode
7.0 years ago

I’m a genomic newbie, so I believe my question is a basic one.

I need to transform raw fastq files into plink .bed files. From my biostar searchers it appears I cannot directly transform fastq sequence files to a .bed format, as I would first need to first transform the fastq to .bam files. It appears after I generate .bam files I can then convert these .bam to plink .bed files?

Questions:

• Which tools (i.e. galaxy, etc) are best to convert fastq to .bam

• Which tools (i.e. bedTools) can be used to convert .bam to plink .bed

Any additional information regarding these format "conversions" would be helpful. I had difficulty installing Bowtie.

Thank you!

plink fastq bam bed • 6.4k views
ADD COMMENT
0
Entering edit mode

Any information about necessary alignments would also be helpful!

ADD REPLY
0
Entering edit mode

good luck with that.

ADD REPLY
0
Entering edit mode

I'm sure you can come up with a join/comm/awk oneliner for this conversion.

ADD REPLY
1
Entering edit mode
7.0 years ago

"Converting" fastq to bam is called alignment. You didn't tell us about the data format you have, but if it's just regular DNA sequencing you should be fine with bwa mem.

After alignment, you should do variant calling on the bam to get a vcf file of variants. This could be done using samtools/bcftools or GATK.

The vcf you obtained can then be converted to plink.bed using, well, plink.

ADD COMMENT
0
Entering edit mode

Thank you so very much for your quick response. Yes, you are correct that my original format is just regular DNA sequencing (fastq format).

By bwa mem do you mean Burrow-Wheeler Aligner for short-read alignment (see minimap2 for long-read alignment)? Can i do the alignment with any of the packages in galaxy? I can use the samtools in Galaxy, correct? I will also try the Genome analysis toolkit.

ADD REPLY
0
Entering edit mode

I don't use galaxy, but yeah, those tools would be fine.

ADD REPLY

Login before adding your answer.

Traffic: 1866 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