Skip to content

Commit 8ae4ad7

Browse files
committed
Merge branch 'develop' of https://github.com/ACEnglish/truvari into develop
2 parents 7978384 + 84aaec2 commit 8ae4ad7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

truvari/msa2vcf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ def msa_to_vars(msa, ref_seq, chrom, start_pos=0):
3333
if alt_key.startswith("ref_"):
3434
continue
3535
# gross
36-
cur_samp_hap = "_".join(alt_key.split('_')[:2])
37-
sample_names.add(alt_key.split('_')[0])
36+
cur_samp_hap = "_".join(alt_key.split('_')[:-1])
37+
sample_names.add("_".join(alt_key.split('_')[:-2]))
3838
alt_seq = msa[alt_key].upper()
3939
# Gotta assume the first base is a match (little unsafe)
4040
anchor_base = ref_seq[0]
4141
if anchor_base == '-':
4242
logging.error("MSA starts with an indel in %s. Can't make VCF", alt_key)
43+
# raise RuntimeWarning TODO - fix this, it breaks threads and makes phab hang
4344
sys.exit(1)
4445

4546
cur_variant = []

truvari/phab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def parse_args(args):
2828
parser.add_argument("-f", "--reference", type=str, required=True,
2929
help="Reference")
3030
parser.add_argument("--buffer", type=int, default=100,
31-
help="Number of reference bases before/after region to add to MSA")
31+
help="Number of reference bases before/after region to add to MSA (%(default)s)")
3232
#parser.add_argument("--add-to", action='store_true',
3333
# help="Build the baseMSA independentally of the compMSA, then add the comp")
3434
parser.add_argument("-o", "--output", default="phab_out",

0 commit comments

Comments
 (0)