Unconfigured Ad
Collapse
X
-
Assuming your vcf files contain only the filtered SNPs of a single strain you are interested in, you could try:
Depending on the number of strains you have, it would of course be helpful/necessary to write a loop.Code:# Get number of different (!) SNPs of two vcfs cat 1.vcf 2.vcf | grep -v '^#' | awk '{print $1,$2,$4,$5}' | sort | uniq -u | wc -l
Leave a comment:
-
-
Help with variant calling pipeline
Hi,
I could really use some help with my variant calling pipeline. I have illumina reads from outbreak bacterial strains, mapped to a reference using bwa, sorted and filtered for quality snps using vcftools and my output are .vcf files for each genome.
My research question in this instance is quite specific, how many snps do my genomes differ by?
I know what I would like to do - create a pair wise snp matrix for all genomes showing snp differences. My ideal output would be a table like this
Sample 1 sample 2 sample 3
Sample 1 0 4 12
Sample 2 4 0 1
Sample 3 12 1 0
I have a feeling it requires a custom Python script or programming in R?
Any help, advice or comments would be very much appreciated
Al'ThorTags: None
-
Latest Articles
Collapse
-
by GATTACATLove this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
-
Channel: Articles
07-01-2026, 11:43 AM -
-
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
-
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 07-02-2026, 11:08 AM
|
0 responses
12 views
0 reactions
|
Last Post
by SEQadmin2
07-02-2026, 11:08 AM
|
||
|
Started by SEQadmin2, 06-30-2026, 05:37 AM
|
0 responses
14 views
0 reactions
|
Last Post
by SEQadmin2
06-30-2026, 05:37 AM
|
||
|
Started by SEQadmin2, 06-26-2026, 11:10 AM
|
0 responses
20 views
0 reactions
|
Last Post
by SEQadmin2
06-26-2026, 11:10 AM
|
||
|
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
54 views
0 reactions
|
Last Post
by SEQadmin2
06-17-2026, 06:09 AM
|
Leave a comment: