Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanvidem committed Apr 22, 2024
1 parent 1b33c58 commit 799ca0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions hicexplorer/chicAggregateStatistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def filter_scores_target_list(pScoresDictionary, pTargetFType, pTargetPosDict, p
accepted_scores = {}
same_target_dict = {}
target_regions_intervaltree = None
#newly added
# newly added
if pTargetFType == 'hdf5':
# read hdf content for this specific combination
targetFileHDF5Object = h5py.File(pTargetFile, 'r')
Expand All @@ -82,7 +82,7 @@ def filter_scores_target_list(pScoresDictionary, pTargetFType, pTargetPosDict, p
start_list = pTargetPosDict[pTargetList[-1]]['start_list']
end_list = pTargetPosDict[pTargetList[-1]]['end_list']
elif pTargetFType == 'bed3':
target_regions_intervaltree = pTargetIntervalTree
target_regions_intervaltree = pTargetIntervalTree
else:
log.error('No target list given.')
raise Exception('No target list given.')
Expand Down Expand Up @@ -349,7 +349,7 @@ def main(args=None):
targetList = [args.targetFile]
target_ftype = 'bed3'
else:
log.error('BED of targets list must have 3 or 4 columns')
log.error('BED of targets list must have 3 or 4 columns')

if len(keys_interactionFile) > 1:

Expand Down
3 changes: 1 addition & 2 deletions hicexplorer/hicCorrectMatrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,7 @@ def main(args=None):
ma.maskBins(outlier_regions)
total_filtered_out = set(outlier_regions)
print(outlier_regions, "Bins that are MAD outliers ({:.2f}%) "
"out of {}".format(pct_outlier, ma.matrix.shape[0]))

"out of {}".format(pct_outlier, ma.matrix.shape[0]))

if args.sequencedCountCutoff and 0 < args.sequencedCountCutoff < 1:
chrom, _, _, coverage = zip(*ma.cut_intervals)
Expand Down
2 changes: 1 addition & 1 deletion hicexplorer/test/general/test_chicAggregateStatistic.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,4 @@ def test_target_list_bed4():
for data in aggregateFileH5Object['c_adj_norm_t_adj_norm']['t_adj_norm'][chromosome][gene]:
assert data in ['chromosome', 'end_list', 'gene_name', 'raw_target_list', 'relative_distance_list', 'start_list', 'sum_of_interactions']

aggregateFileH5Object.close()
aggregateFileH5Object.close()

0 comments on commit 799ca0d

Please sign in to comment.