-
Notifications
You must be signed in to change notification settings - Fork 0
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
SV/Add Makefile and additional features to Hap-IBD #1
base: master
Are you sure you want to change the base?
Conversation
Add an option that allows the user to restrict comparisons to only the identifiers specified in a text file.
@@ -403,6 +403,8 @@ private static char flipBase(char c) { | |||
case 'G' : return 'C'; | |||
case 'T' : return 'A'; | |||
case 'N' : return 'N'; | |||
case 'I' : return 'I'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insertions and deletions are the same on both strands.
Set<String> exclude = Utilities.idSet(excludeSamplesFile); | ||
return Filter.excludeFilter(exclude); | ||
} | ||
else if (includeSamplesFile!=null) { | ||
Set<String> include = Utilities.idSet(includeSamplesFile); | ||
return Filter.includeFilter(include); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conveniently, the Filter
class already has an includeFilter
defined.
|
||
// algorithm parameters | ||
min_mac = Validate.intArg("min-mac", argsMap, false, DEF_MIN_MAC, 1, IMAX); | ||
min_mac = Validate.intArg("min-mac", argsMap, false, DEF_MIN_MAC, 0, IMAX); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
min-mac
is only used here and if it set to 0 the filtering step is skipped, the same as the case when all markers meet the min-mac requirement.
This PR adds a Makefile and basic additional features to Hap-IBD. The Makefile makes it easier to rebuild the jar from source. I removed the jar indexing step because it is deprecated.
Additional Features:
I
andD
as markers for IBD detection. Without this feature, Hap-IBD will throw an exception if it encounters these variants.includesamples
option similar to theexcludesamples
option already provided in Hap-IBD but works by excluding all samples that are NOT included in theincludesamples
file.min-mac=0
. This change allows for the same markers to be used for independent runs with different sets of individuals.