I've found a SNP on a certain position on a reference genome (eg chromosome 1, position 13579) by using bwasw and Samtools. Next, I want to find out what is the base on each of my other Sanger sequences. My other Sanger sequences may or may not cover this SNP position.
Unconfigured Ad
Collapse
X
-
I see that 'volks' responded. I think that he/she is answering the question that you probably meant to ask, which I would state as:
I have found a SNP on a chromosome. I would like to know for all of my sequences what base, if any, they have at that SNP position.
samtools mpileup is the answer for the above. See: http://samtools.sourceforge.net/mpileup.shtml
And, of course, the man page at: http://samtools.sourceforge.net/samtools.shtml
Comment
-
"wide-type"? I'll presume "wild-type".
I was assuming, and perhaps 'volks' was as well, that your Sanger sequences were mapped using bwa and that the information of this mapping is inside your BAM file. If so then 'samtools mpileup your_file' will get you the information you need. You can limit the positions via the '-l' option.
Comment
-
I tried the commands below. I'm sure the sample RN21 has SNP on chr_2:5556282. However, the output showed all the SNPs found in sample RN21. Same as without typing -l chr_2:5,556,282.
What did I miss?
samtools mpileup -uf Sorbil.fasta RN21.ab1.sorted.bam -l chr_2:5,556,282 | /mnt/E_DRIVE/samtools-0.1.17/bcftools/bcftools view -bvcg - > var.raw.bcf
bcftools view var.raw.bcf > var.flt.vcf
Comment
-
Hi Shuang,
You can use the -r option with a coordinate. You should also write the options before the bam file.
Ex: samtools mpileup -r chr1:38280656-38280656 file.bam
Emilie
****************************************
samtools mpileup [options] in1.bam [in2.bam [...]]
-r STR Only generate pileup in region STR [all sites]
Comment
Latest Articles
Collapse
-
by SEQadmin2
The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.
This convergence of genetics, immunology, and computation...-
Channel: Articles
09-01-2026, 05:41 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, Today, 12:14 PM
|
0 responses
5 views
0 reactions
|
Last Post
by SEQadmin2
Today, 12:14 PM
|
||
|
Started by SEQadmin2, Today, 11:33 AM
|
0 responses
7 views
0 reactions
|
Last Post
by SEQadmin2
Today, 11:33 AM
|
||
|
Started by SEQadmin2, 09-03-2026, 10:22 AM
|
0 responses
23 views
0 reactions
|
Last Post
by SEQadmin2
09-03-2026, 10:22 AM
|
||
|
Started by SEQadmin2, 09-02-2026, 12:32 PM
|
0 responses
41 views
0 reactions
|
Last Post
by SEQadmin2
09-02-2026, 12:32 PM
|
Comment