Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Filtering SNPs on identical genotype and position

    Hello everyone,

    I'm looking for software that is able to filter out SNPs which:
    - have an identical genotype across all samples
    - and are within a certain range (f.e. 100 bp)
    Preferably it should work on VCF files, but other suggestions are fine too.

    It shouldn’t be too hard to script this myself, but it would be great if someone knows an available tool for this.
    Thanks!

  • #2
    have you looked at a tool like bedIntersect on bedtools? Or are you trying to filter out only a particular allele for a given variant? For example, if there's a SNP that can be either A, G, or T, are you trying to remove that variant from your vcf altogether or do you just want to remove anything that's been called as an A?

    Comment


    • #3
      Hi Jessica,

      Thanks for the reply.
      Bedtools intersect is not what i'm looking for. Let me clarify myself...

      I have a list of SNP positions and genotype data, e.g:

      Scaffold | position | sample 1 | sample 2 | sample 3
      1 | 100 | 0 | 1 | 2
      1 | 150 | 0 | 1 | 2
      1 | 175 | 0 | 1 | 1
      1 | 300 | 0 | 1 | 2

      The entire line at position 150 has to be removed, because that one has identical genotypes as position 100.
      Position 175 should be kept, because that one has a different genotype in sample 3 compared to position 100.
      Position 300 should be kept also. Alltough it has the same genotype as position 100, it is more than 100 bp forward compared to position 100.

      Comment


      • #4
        Hello,

        Did you ever find a good tool to filter out SNPs with genotypes across your samples?

        I am looking to do the same, filter sites that are invariant across samples that are in a single vcf file. It sounds easy but I haven't found a good tool to do so.

        Are there any suggestions?

        Thank you
        Last edited by htetre; 07-03-2017, 05:22 AM.

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Recent Developments in Metagenomics
          by seqadmin





          Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
          09-23-2024, 06:35 AM
        • seqadmin
          Understanding Genetic Influence on Infectious Disease
          by seqadmin




          During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

          Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
          09-09-2024, 10:59 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 04:51 AM
        0 responses
        8 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 10-01-2024, 07:10 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-30-2024, 08:33 AM
        0 responses
        18 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 09-26-2024, 12:57 PM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Working...
        X