SEQanswers

SEQanswers (http://seqanswers.com/forums/index.php)
-   Bioinformatics (http://seqanswers.com/forums/forumdisplay.php?f=18)
-   -   FASTQ to SAM conversion (http://seqanswers.com/forums/showthread.php?t=5325)

albrown415 06-01-2010 11:22 AM

FASTQ to SAM conversion
 
What is the best program to use for converting fastq (or eland extended) files to SAM format? Thanks!

nilshomer 06-01-2010 11:46 AM

Quote:

Originally Posted by albrown415 (Post 19470)
What is the best program to use for converting fastq (or eland extended) files to SAM format? Thanks!

Do you want to align the data first, or just represent the FASTQ data in the SAM format? Is the data paired end (mate-pair)?

albrown415 06-02-2010 08:20 AM

You're right. This was a silly question. Most people map the reads at this point and choose an alignment program that outputs the data into the proper format. I'm working to get Bowtie running on my computer, which I believe should be able to input fastq and output SAM.

maubp 06-04-2010 12:28 PM

If you did want to convert the FASTQ to an unaligned SAM or BAM file, try this:
http://picard.sourceforge.net/comman...tml#FastqToSam

albrown415 06-04-2010 01:59 PM

Thanks. That's great to know.

ebatis2 01-04-2012 07:03 AM

Hi,

I've received results from my first NGS run and like you posted, I'd like to convert my fastq file to a SAM file in order to upload and retrieve data from Galaxy. I'll need to map the reads and align them to the Rice genome...but is this something I could do on my MacOSX? I'm at a loss as far as how to retrieve the sequencing results! Any help would be greatly appreciated!!

husamia 01-04-2012 11:55 AM

Quote:

Originally Posted by ebatis2 (Post 60881)
Hi,

I've received results from my first NGS run and like you posted, I'd like to convert my fastq file to a SAM file in order to upload and retrieve data from Galaxy. I'll need to map the reads and align them to the Rice genome...but is this something I could do on my MacOSX? I'm at a loss as far as how to retrieve the sequencing results! Any help would be greatly appreciated!!

FASTQ is the raw reads with qualities. SAM is format to describe reads and their alignment. This was hinted in the previous respond above. It seems you've got to align the reads first if you just received the raw FASTQ. Perhaps you should be asking how to align your reads. I can't help much because I am not sure what your goal is. Galaxy has a tutorial on how to align your reads and produce a SAM file. Check it out.

amolkolte 12-10-2012 10:00 PM

Quote:

Originally Posted by husamia (Post 60902)
FASTQ is the raw reads with qualities. SAM is format to describe reads and their alignment. This was hinted in the previous respond above. It seems you've got to align the reads first if you just received the raw FASTQ. Perhaps you should be asking how to align your reads. I can't help much because I am not sure what your goal is. Galaxy has a tutorial on how to align your reads and produce a SAM file. Check it out.

I have the raw FASTQ reads and in order to perform de novo assembly using transAbySS, I need to feed the input in the form of bam or sam. Can you please shed some light on this.

TheRob 12-11-2012 05:23 PM

Hi Amolkote,

It is rather unusual for an assembly program to accept SAM/BAM input but not FastQ. I suspect it accepts FastQ, but I don't have any experience with transAbyss. Anyways, the only tool i know that will do the job (short of an awk or perl script, which can be dangerous) was mentioned above by maubp: FastqToSam.

Why are you using transAbyss exactly?

Stroehli 12-13-2012 11:57 PM

Hi,
I think you cannot run transAbyss on its own. Taking a short look at the manual, (http://www.bcgsc.ca/downloads/trans-...v1.2.0.doc.pdf) I figured you probably need to run Abyss first (see "Data Preparation" in the Workflow on page 7). Plus you might have to install all the external software mentioned in "Installation, 2. External Software" (page 5). Abyss will produce contigs (.fa) and the other aligners will produce the SAM/BAM files for you, so you don't have to convert them, if I got that right. Hope it helps.

Cheers,
Stroehli

amolkolte 01-24-2013 01:57 AM

Thanks TheRob and Stroehli !!

TheRob - I was using transbyss for de-novo assembly, since I don't have a concrete reference to begin with.

Stroehli - I have used abyss to assemble the contigs. thank you.

kurban910 08-05-2014 08:54 PM

fastq to sam
 
i have a raw reads dataset in format fastq, and i want to use it to find SNPs of the transcriptome data we have. after i searched some material i found that i can do it by using Samtools and SOAPsnp softwares, am i right:confused:? but before i use them i need to convert my raw reads fastq format to SAM format, right:confused:?
so i installed java, samtools and picard tools on my ubuntu 12.04(why i mention these here is because i am new at linux, so any suggestion would be appreciated). and then i write this commend in the terminal :
java -Xmx2g -jar FastqToSam.jar FASTQ=CD_ATGTCA_L007_R1_001.fastq.gz FASTQ2=CD_ATGTCA_L007_R2_001.fastq.gz OUTPUT=outputfile.sam PREDICTED_INSERT_SIZE=null QUALITY_FORMAT=Solexa SAMPLE_NAME=file4

then i got this :
Error: Unable to access jarfile FastqToSam.jar

i do not know what is going on:confused::confused::confused:.
i guess many people here may done these before ,so please anyone could share your knowledge ?!:):):)

ajagannath.patro 08-05-2014 09:02 PM

To access the jar, you can try giving complete path of the jar where it is installed. That should work.

WhatsOEver 08-05-2014 11:40 PM

Quote:

Originally Posted by kurban910 (Post 146840)
i have a raw reads dataset in format fastq, and i want to use it to find SNPs of the transcriptome data we have. after i searched some material i found that i can do it by using Samtools and SOAPsnp softwares, am i right:confused:? but before i use them i need to convert my raw reads fastq format to SAM format, right:confused:?
so i installed java, samtools and picard tools on my ubuntu 12.04(why i mention these here is because i am new at linux, so any suggestion would be appreciated). and then i write this commend in the terminal :
java -Xmx2g -jar FastqToSam.jar FASTQ=CD_ATGTCA_L007_R1_001.fastq.gz FASTQ2=CD_ATGTCA_L007_R2_001.fastq.gz OUTPUT=outputfile.sam PREDICTED_INSERT_SIZE=null QUALITY_FORMAT=Solexa SAMPLE_NAME=file4

then i got this :
Error: Unable to access jarfile FastqToSam.jar

i do not know what is going on:confused::confused::confused:.
i guess many people here may done these before ,so please anyone could share your knowledge ?!:):):)

SAM is the abbreviation for Sequence Alignment/Map format, which tells you that it should contain aligned/mapped reads. Though it is possible to create a kind of unmapped SAM file from fastq, this will be useless to address your question.

My suggestion: Make yourself familiar with read alignment via tophat (the software is here: http://ccb.jhu.edu/software/tophat/tutorial.shtml; the paper is here: http://www.nature.com/nprot/journal/....2012.016.html) and samtools in general (I suggest Dave Tang's brief wiki: http://davetang.org/wiki/tiki-index.php?page=SAMTools) and samtools mpileup in particular (http://samtools.sourceforge.net/mpileup.shtml)

dpryan 08-06-2014 12:34 AM

Since you mention SNP calling, you'll want to use a tools like BWA or bowtie2 rather than tophat for alignment. Aside from that, I'm in agreement with WhatsOEver.

WhatsOEver 08-06-2014 12:51 AM

Quote:

Originally Posted by dpryan (Post 146862)
Since you mention SNP calling, you'll want to use a tools like BWA or bowtie2 rather than tophat for alignment. Aside from that, I'm in agreement with WhatsOEver.

Agreed :)
I mentioned tophat as it has imo the best documentation and is therefore the easiest to start with. But in the end, it might not be the best solution here.

kurban910 08-06-2014 02:36 AM

i am glad for you guys reply, thanks.

kurban910 08-06-2014 08:25 AM

hello guys!
i have downloaded bwa-0.7.10, and then uncompressed it, then
kurban@kurban-X550VC:~/Downloads/bwa-0.7.10$ make

it showed this :
gcc -c -g -Wall -Wno-unused-function -O2 -DHAVE_PTHREAD -DUSE_MALLOC_WRAPPERS utils.c -o utils.o
utils.c:33:18: fatal error: zlib.h: No such file or directory
compilation terminated.
make: *** [utils.o] Error 1
what is what is happening there ?

maubp 08-06-2014 08:30 AM

You (or your SysAdmin) need to install the zlib library including the development files (header files like zlib.h).

kurban910 08-06-2014 09:03 AM

thank you, after installing zlib it worked


All times are GMT -8. The time now is 05:01 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.