Skip to content

Commit

Permalink
updated grep REFID for bed file with -w
Browse files Browse the repository at this point in the history
  • Loading branch information
Chienchi Lo committed Dec 4, 2024
1 parent c095482 commit ed1e8a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amplicov/amplicov
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def convert_bed_to_amplicon_dict(input,cov_array,RefID="",unique=False, count_pr
amplicon=defaultdict(dict)
primers_pos=list()
RefID = '""' if RefID is None else RefID
cmd = 'grep -v alt %s | grep %s | paste - - | cut -f 2,3,4,8,9 | sed -e "s/_LEFT//g" -e "s/_RIGHT//g" ' % (input_bed, RefID)
cmd = 'grep -v alt %s | grep -w %s | paste - - | cut -f 2,3,4,8,9 | sed -e "s/_LEFT//g" -e "s/_RIGHT//g" ' % (input_bed, RefID)
proc = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE)
previous_id=''
outs, errs = proc.communicate()
Expand Down

0 comments on commit ed1e8a0

Please sign in to comment.