![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
bcftools view generates an empty output | manore | Bioinformatics | 14 | 07-08-2016 02:19 AM |
View TopHat output | xiaohua | Bioinformatics | 2 | 04-11-2012 05:11 PM |
AMOS: problem getting hawkeye to view bambus output | Kennels | Bioinformatics | 3 | 08-24-2011 07:49 PM |
need a Genome browser to view Mb in a window | shuang | Bioinformatics | 7 | 07-22-2011 07:12 AM |
tophat - cannot view sam output in samtools tview | lmilne | Bioinformatics | 2 | 12-01-2009 12:13 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: USA Join Date: Jun 2011
Posts: 51
|
![]()
Suppose I have a sam file?
Can I use samtools command to get whole genome data? Thanks. |
![]() |
![]() |
![]() |
#2 |
Devon Ryan
Location: Freiburg, Germany Join Date: Jul 2011
Posts: 3,480
|
![]()
Could you describe what "whole genome data" means?
|
![]() |
![]() |
![]() |
#3 |
Member
Location: USA Join Date: Jun 2011
Posts: 51
|
![]()
If we use samtools, we can select chromosome.
The entire means from chr1 to chr 23. |
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: San Diego Join Date: May 2008
Posts: 912
|
![]()
By default, samtools view will convert the whole .sam file into a .bam. Just don't add a chromosome name to the command line, and you'll get everything.
|
![]() |
![]() |
![]() |
#5 |
Member
Location: USA Join Date: Jun 2011
Posts: 51
|
![]()
Can we identify the start and the end position?
I just guess that start from 0 and end with a big number. |
![]() |
![]() |
![]() |
#6 |
Devon Ryan
Location: Freiburg, Germany Join Date: Jul 2011
Posts: 3,480
|
![]()
If you want the whole thing then don't add start or end positions. From reading the man page, I gather that specifying start and end positions without indicating an actual chromosome would confuse things.
Last edited by dpryan; 11-09-2011 at 01:13 PM. Reason: I should really proof read before hitting post... |
![]() |
![]() |
![]() |
#7 |
Member
Location: Denver, CO Join Date: Mar 2011
Posts: 37
|
![]()
to get everything just:
Code:
samtools view .bam Code:
samtools view -h .bam Code:
samtools view -S .sam Code:
samtools view -S .sam chr1:0-1000000 Last edited by jbrwn; 11-09-2011 at 01:24 PM. |
![]() |
![]() |
![]() |
Thread Tools | |
|
|