You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: RASCalculator.py
+5-5
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@
10
10
parser=argparse.ArgumentParser(description="Compute rare allele sharing statistics between two populations with respect to an outgroup, as well as outgroup F3 statistics. Also preforms error estimation using jackknifing, using the number of observed sites for normalisation.")
11
11
parser.add_argument("-I", "--Input", metavar="<INPUT FILE>", type=argparse.FileType('r'), help="The input freqsum file. Omit to read from stdin.", required=False)
12
12
parser.add_argument("-O", "--Output", metavar="<OUTPUT FILE>", type=argparse.FileType('w'), help="The output file. Omit to print in stdout.")
13
-
parser.add_argument("-o", "--outgroup", metavar="POP", type=str, help="The outgroup to polarize all alleles with. As a useful standard choice, use Chimp as outgroup", required=True)
13
+
parser.add_argument("-o", "--outgroup", metavar="POP", type=str, help="The outgroup to polarize all alleles with. As a useful standard choice, use Chimp as outgroup")
14
14
parser.add_argument("-M", "--maxAF", metavar="<MAX ALLELE COUNT>", type=int, default=10, help="The maximum number of alleles (total) in the reference populations. The default maximum allele value is 10.", required=False)
15
15
parser.add_argument("-m", "--minAF", metavar="<MIN ALLELE COUNT>", type=int, default=2, help="The minimum number of alleles (total) in the reference populations. The default minimum allele count is 2.", required=False)
16
16
@@ -65,7 +65,7 @@
65
65
assert (xinfreqSumParser.popNames), "Population {} not found in FreqSum".format(x)
66
66
forxinTestPops:
67
67
assert (xinfreqSumParser.popNames), "Population {} not found in FreqSum".format(x)
68
-
assert (args.outgroupinfreqSumParser.popNames), "Population {} not found in FreqSum".format(args.outgroup)
68
+
assert (args.outgroupisNoneorargs.outgroupinfreqSumParser.popNames), "Population {} not found in FreqSum".format(args.outgroup)
0 commit comments