Skip to content
Snippets Groups Projects
Commit 8718d577 authored by Holly Ruess's avatar Holly Ruess
Browse files

fix optional blacklist argument

parent 8e447c31
Branches
Tags
1 merge request!25Resolve "Blacklist of regions"
Pipeline #7070 failed with stages
in 4 hours, 58 minutes, and 24 seconds
......@@ -40,7 +40,8 @@ def get_args():
parser.add_argument('-b', '--blacklist',
help="Bed file of blacklisted regions to remove",
required=False)
required=False,
default="None")
args = parser.parse_args()
return args
......@@ -198,7 +199,7 @@ def main():
args = get_args()
design = args.design
files = args.files
blacklist = args.files
blacklist = args.blacklist
# Create a file handler
handler = logging.FileHandler('consensus_peaks.log')
......@@ -230,7 +231,7 @@ def main():
design_diff.to_csv("design_exQC.tsv", header=True, sep='\t', index=False)
# Remove blacklist regions; if blacklist = True
if blacklist:
if os.path.exists(blacklist):
for experiment, df_experiment in design_peaks_df.groupby('experiment_id'):
bl_peaks = blacklist_peaks(experiment, blacklist)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment