Skip to content

Commit

Permalink
Allow both -R/-r and -F to be used
Browse files Browse the repository at this point in the history
There doesn't seem to be any reason not to allow analysis from a
freq_file while also restricting to certain regions.

This also removes the auto-usage of the frq_file as the regions
in bcf_sr, which works around some unused SNPs as described in Illumina#29
  • Loading branch information
bpow committed May 22, 2020
1 parent fce91b8 commit 6f12a69
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions kin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,6 @@ int kin_main(int argc, char* argv[])
cerr<<"ERROR: -t/-T and -r/-R are incompatible"<<endl;
exit(1);
}
if(!frq_file.empty() && !regions.empty())
{
cerr<<"ERROR: -F and -R/-r are incompatible!"<<endl;
exit(1);
}
if(!frq_file.empty() && regions.empty())
{
regions=frq_file;
regions_is_file=true;
}
if(frq_file.empty())
{
cerr<<"No frequency VCF provided (-F). Allele frequencies will be estimated from the data."<<endl;
Expand Down

0 comments on commit 6f12a69

Please sign in to comment.