Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
Assuming your vcf files contain only the filtered SNPs of a single strain you are interested in, you could try:
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 seqadmin
The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...-
Channel: Articles
02-24-2025, 06:31 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, 03-03-2025, 01:15 PM
|
0 responses
169 views
0 likes
|
Last Post
by seqadmin
03-03-2025, 01:15 PM
|
||
Started by seqadmin, 02-28-2025, 12:58 PM
|
0 responses
258 views
0 likes
|
Last Post
by seqadmin
02-28-2025, 12:58 PM
|
||
Started by seqadmin, 02-24-2025, 02:48 PM
|
0 responses
638 views
0 likes
|
Last Post
by seqadmin
02-24-2025, 02:48 PM
|
||
Started by seqadmin, 02-21-2025, 02:46 PM
|
0 responses
265 views
0 likes
|
Last Post
by seqadmin
02-21-2025, 02:46 PM
|
Leave a comment: