Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change output format to show Genotype rather than Alt Base #19

Merged
merged 8 commits into from
Jul 16, 2015

Conversation

bewt85
Copy link
Contributor

@bewt85 bewt85 commented Jul 16, 2015

Part of ticket 471874

Previously snp_sites reported the value of the alternate base if present else returned '.' if the base matched the reference sequence. Unfortunately some tools (like Plink and PyVCF) did not understand this format. I've therefore implemented the suggested Genotype format in the spec.

This is a breaking change so I've bumped the VERSION to 2.0.0

There was an assumption that there would not be greater than 15
different characters used in a given position between sequences.  This
is unlikely to be possible in well formatted files but it could be the
case in an input file is corrupted.
GT format reports the index into a list of alleles rather than the
relevant allele
The previous behaviour output an Alt Base which was not understood by
some other tools.  This changes the format to GT.
@bewt85 bewt85 closed this Jul 16, 2015
@bewt85 bewt85 changed the title Bt5 471874 gt format Change output format to show Genotype rather than Alt Base Jul 16, 2015
@bewt85 bewt85 reopened this Jul 16, 2015
@bewt85
Copy link
Contributor Author

bewt85 commented Jul 16, 2015

@satta, if you have a minute, would you mind reviewing this for me?

@bewt85
Copy link
Contributor Author

bewt85 commented Jul 16, 2015

closed while I make changes discussed with @satta

@bewt85 bewt85 closed this Jul 16, 2015
Use calloc and strlen to simplify the vcf related code
@bewt85
Copy link
Contributor Author

bewt85 commented Jul 16, 2015

@satta I've made most of the changes we discussed. I've not removed the exit because this is already taking too long and it doesn't add loads of extra value (probably).

@bewt85 bewt85 reopened this Jul 16, 2015
satta added a commit that referenced this pull request Jul 16, 2015
Change output format to show Genotype rather than Alt Base
@satta satta merged commit 3451d0a into master Jul 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants