Unconfigured Ad
Collapse
X
-
For samtools view ..., I don't see any sense you need to use it, since I normally use it to convert bam file back to sam file.
-
Try these two commands:
>samtools pileup -cf ref.fa testing.bam
or
>samtools pileup -cf ref.fa -t ref.fa.fai testing.sam
They are actually the same, but you would have to get bam file first which will require the indexed reference sequence (use faidx option to get it).
Leave a comment:
-
If you have a "sam" file, then you must use the "-S" flag (for the input is SAM) with "samtools view". "samtools view" expects a ".bam" file, so you could also convert it to a BAM file.Originally posted by joa_ds View PostHello everyone
There are some topics concerning BWA and Samtools, but i still haven't found the solution to my problem...
Ok, here is what i do
1. I run BWA aln and I get a .sai file
2. I run BWA samse and I get a .sam file
So far so good.
But now i am having troubles using the 'pileup function'
As far as i understand i should use ./samtools -f ref.fna testing.sam
but it is giving me errors.
I am probably just using a wrong command or maybe i should convert the .sam file to a .bam file? I have tried this using:
samtools view -bt ref.fna -o out.bam testing.sam:sam_header_read2: Assertion `fp' failed.
samtools view -b ref.fna -o out.bam testing.sam:segmentation error
Anyone has the exact commando for me to got from BWA to 'pileup results' in samtools?
thx
Leave a comment:
-
BWA - Samtools problem
Hello everyone
There are some topics concerning BWA and Samtools, but i still haven't found the solution to my problem...
Ok, here is what i do
1. I run BWA aln and I get a .sai file
2. I run BWA samse and I get a .sam file
So far so good.
But now i am having troubles using the 'pileup function'
As far as i understand i should use ./samtools -f ref.fna testing.sam
but it is giving me errors.
I am probably just using a wrong command or maybe i should convert the .sam file to a .bam file? I have tried this using:
samtools view -bt ref.fna -o out.bam testing.sam:sam_header_read2: Assertion `fp' failed.
samtools view -b ref.fna -o out.bam testing.sam:segmentation error
Anyone has the exact commando for me to got from BWA to 'pileup results' in samtools?
thxLast edited by joa_ds; 08-05-2009, 01:05 AM.Tags: None
Latest Articles
Collapse
-
by SEQadmin2
Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?
Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating...-
Channel: Articles
10-14-2026, 09:55 AM -
-
by SEQadmin2
Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.
We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing...-
Channel: Articles
-
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 10-22-2026, 11:13 AM
|
0 responses
43 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 11:13 AM
|
||
|
Started by SEQadmin2, 10-22-2026, 10:48 AM
|
0 responses
33 views
0 reactions
|
Last Post
by SEQadmin2
10-22-2026, 10:48 AM
|
||
|
Started by SEQadmin2, 10-15-2026, 10:52 AM
|
0 responses
44 views
0 reactions
|
Last Post
by SEQadmin2
10-15-2026, 10:52 AM
|
||
|
Started by SEQadmin2, 10-14-2026, 05:39 AM
|
0 responses
45 views
0 reactions
|
Last Post
by SEQadmin2
10-14-2026, 05:39 AM
|
Leave a comment: