Coder Social home page Coder Social logo

Comments (3)

pierrepeterlongo avatar pierrepeterlongo commented on August 18, 2024

Hi Stephan

Just to be sure:

  1. You computed variants from reads, wherever they come from, with discoSnp++.
  2. You mapped the obtained .fasta file on reference genome A with VCF_creator
  3. You mapped the same .fasta file on reference genome B, again with VCF_creator.

If this is the case, yes the variant ids are computed during step 1/. They appear in the prefix_[un]coherent.fa files. The downstream computations conserve those ids.

I hope this helps.

Pierre

from discosnp.

stefanerb89 avatar stefanerb89 commented on August 18, 2024

Thank you.
And for this case:

we have a more than a unique snp, syntax in fasta is higher_path_XXXXX....P1_pos....P2_pos

In VCF file the ID is then XXXXX_1 and XXXXX_2 (if both match)

But if the SNP matches on position 1 in reference genome A and the same SNP matches on position 2 in reference genome B, the ID names are no longer comparable. In both vcf files they are called XXXXX, and not XXXXX_1 and XXXXX_2. Am I correct in assuming?

from discosnp.

pierrepeterlongo avatar pierrepeterlongo commented on August 18, 2024

Hi Stephan.

Sorry for the delay.

I'm not quite sure to understand your question.
After mapping the predicted variants on a reference, one obtains a vcf file that conserves the ids. For instance (this is in large_test directory), one finds this lines in the vcf:


humchr1 3483342 994_1   C       G       .       PASS    Ty=SNP;Rk=0;UL=977;UR=4834;CL=5893;CR=4834;Genome=.;Sd=1        GT:DP:PL:AD:HQ  0|1:43:229,17,409:26,17:0,0
humchr1 3483361 994_2   G       A       .       PASS    Ty=SNP;Rk=0;UL=977;UR=4834;CL=5893;CR=4834;Genome=.;Sd=1        GT:DP:PL:AD:HQ  0|1:43:229,17,409:26,17:0,0

Here we can see 994_1 and 994_2 mapped on the reference genome. If we map reads on another reference genome, one gets a second vcf file, with variant ids conserved.

This helps?

from discosnp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.