Thanks, Nils; I had already tried changing the prefix, but it still seems to fail -- I'll look into it again when I have time.
Unconfigured Ad
Collapse
X
-
Hi nilshomer and thanks for your reply!
I've sorted and created the indexes but the samtools message remains the same.
Any other ideas? Do you know if there exists another way to extract a particular chromosomal region from a .bam file?
Thanks,
M.
Comment
-
-
You could just run "samtools view in.bam | grep chr22" for example. Weird that your merge fails.Originally posted by Jeckow View PostHi nilshomer and thanks for your reply!
I've sorted and created the indexes but the samtools message remains the same.
Any other ideas? Do you know if there exists another way to extract a particular chromosomal region from a .bam file?
Thanks,
M.
Nils
Comment
-
-
Could you post your example (with a download link) to [email protected] so I can take a look?Originally posted by tgolubch View PostThanks, Nils; I had already tried changing the prefix, but it still seems to fail -- I'll look into it again when I have time.
Nils
Comment
-
-
That sounds suspiciously similar to a wig file, although, the format is not quite what you're expecting. I assume what you're looking for would look like:
chr1 1 0
chr2 2 1
chr2 3 1
... etc
The problem is that such file would be incredibly inefficient, hence the wig file, which will provide a more compact version. (Presumably the "variable width" format is what you're looking for.)
Although not quite the same, FindPeaks 4.0 (Yes, sorry, I'm plugging my own software) will generate fixedstep format wig files from sam/bam files, which would give you a similar result, which would look like:
fixedStep chrom=chr22 start=16653550 step=1
6
7
8
9
10
11
......
where you get a single line that tells you the start point (chr and position), and then the coverage of each position after that.
There are plenty of other wig file generators out there as well - although I'm not sure how many of them read bam/sam yet.
CheersThe more you know, the more you know you don't know. —Aristotle
Comment
-
-
@Alberto Magi
What you are looking for is "pileup" (http://samtools.sourceforge.net/pileup.shtml). Please also see this page (http://samtools.sourceforge.net/pipe.shtml) about getting pileup in a specified region.
@apfejes
Pileup output is not part of Picard, you should be able to get similar things from GATK (http://www.broadinstitute.org/gsa/wi...alysis_Toolkit)
Comment
-
-
Thanks - pileup also fits that description. Variety is the spice of life. (=
Though, just to clarify, I was just looking to point Alberto in the right direction, and had forgotten about pileup. (I don't use pileup, but I do use Picard.)The more you know, the more you know you don't know. —Aristotle
Comment
-
-
I was curious if anyone has found a workaround to this error? It is coming up for me when viewing novoalign alignments. I am using samtools 0.1.6 (r453), and get the following error when loading a samtools converted bam file from novoalign's sam file
samtools: bam_lpileup.c:116: tview_func: Assertion `l == tv->n_pre' failed.
thanks
Originally posted by zee View PostI was wondering if I could get some help on the SAM specification.
I get the error:
When I page the viewer to my reads containing indels. A sample of my data is
And I'm using novoalign format where I've modified the novo2sam.pl script to produce a 'correct' CIGAR format. Most samtools operation work except for the tview
Comment
-
-
Pileup Base Quality
Hi, I was wondering if anyone could point me in the direction of any documentation that describes how to interpret the base quality information reported within a pileup format file.
I've checked here: http://samtools.sourceforge.net/pileup.shtml but can't find any information.
Cheers
Comment
-
Latest Articles
Collapse
-
by SEQadmin2
I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.
Here are nine questions we think about, in roughly the order they matter, before...-
Channel: Articles
06-18-2026, 07:11 AM -
-
by SEQadmin2
Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.
The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
...-
Channel: Articles
06-02-2026, 10:05 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Whole-Genome Sequencing Traces Faroe Islands Ancestry to a North Atlantic Founder Population
by SEQadmin2
Started by SEQadmin2, 06-17-2026, 06:09 AM
|
0 responses
30 views
0 reactions
|
Last Post
by SEQadmin2
06-17-2026, 06:09 AM
|
||
|
Sequencing the Two-Toed Sloth Genome Reveals Jumping Genes Tied to Its Extreme Metabolism
by SEQadmin2
Started by SEQadmin2, 06-09-2026, 11:58 AM
|
0 responses
44 views
0 reactions
|
Last Post
by SEQadmin2
06-09-2026, 11:58 AM
|
||
|
Started by SEQadmin2, 06-05-2026, 10:09 AM
|
0 responses
49 views
0 reactions
|
Last Post
by SEQadmin2
06-05-2026, 10:09 AM
|
||
|
Started by SEQadmin2, 06-04-2026, 08:59 AM
|
0 responses
51 views
0 reactions
|
Last Post
by SEQadmin2
06-04-2026, 08:59 AM
|
Comment