Skip to content

Commit

Permalink
black updating
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-cheshire committed Jan 31, 2024
1 parent d4fa90d commit 6970c85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions bin/check_samplesheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,12 @@ def check_samplesheet(file_in, file_out, use_control):
# Calculate the exact control/replicate id combo
if use_control == "true":
for group, reps in sorted(sample_run_dict.items()):

# Calculate the ctrl group
ctrl_group = None
is_ctrl = False
for replicate, info in sorted(reps.items()):
ctrl_group = info[0][2]
if ctrl_group == '':
if ctrl_group == "":
is_ctrl = True
break

Expand Down
5 changes: 2 additions & 3 deletions bin/igv_files_to_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,11 @@ def igv_files_to_session(XMLOut, ListFile, Genome, GtfBed, PathPrefix=""):
break
fout.close()


## Construct groups
groups = {}
group_num = 1
for ifile, colour in fileList:
group = os.path.basename(ifile).split('_R')[0]
group = os.path.basename(ifile).split("_R")[0]
if group not in groups:
groups[group] = group_num
group_num = group_num + 1
Expand Down Expand Up @@ -170,7 +169,7 @@ def igv_files_to_session(XMLOut, ListFile, Genome, GtfBed, PathPrefix=""):
elif extension in [".bw", ".bigwig", ".tdf", ".bedGraph", ".bedgraph"]:
XMLStr += (
'\t\t<Track altColor="0,0,178" autoScale="true" autoscaleGroup="%s" clazz="org.broad.igv.track.DataSourceTrack" color="%s" '
% (groups[os.path.basename(ifile).split('_R')[0]], colour)
% (groups[os.path.basename(ifile).split("_R")[0]], colour)
)
XMLStr += 'displayMode="COLLAPSED" featureVisibilityWindow="-1" fontSize="12" height="100" '
XMLStr += (
Expand Down

0 comments on commit 6970c85

Please sign in to comment.