Conversation
There was a problem hiding this comment.
Thanks for the work.
It'd be great to have:
- Infer if aviti or not only once, and perhaps keep it at the config level
- get rid of the code duplicatio for seqfacdir
- have the config updates reflected in the ini template
- ensure the tests pass
- PR title should follow conventional commit
| d = {'flowcell_id': FCID} | ||
| d['sequences'] = json.dumps(msg) | ||
| basePath= config.get("Paths","baseData") | ||
| aviti_check= glob.glob(f"{basePath}/*/RunManifest.csv") |
There was a problem hiding this comment.
Why not directly from the folder name ?
There was a problem hiding this comment.
Thanks for the notice! opted for this approach.
BRB/PushButton.py
Outdated
| current_year = "20" + str(lane_dir)[0:2] | ||
| year_postfix = Path("Sequence_Quality_" + current_year) / Path("Illumina_" + current_year) | ||
| sequencing_type=lane_dir.split("_")[1] | ||
| if sequencing_type.startswith("AV"): |
There was a problem hiding this comment.
This is now a second way of discriminating aviti runs from illumina, this should be consistent.
BRB/PushButton.py
Outdated
| project = BRB.misc.pacifier(project) | ||
| sampleSheet = f"/dont_touch_this/short_runs/{runID}/RELACS_Project_{project}.txt" | ||
|
|
||
| # Fallback if exact path doesn't exist |
There was a problem hiding this comment.
Implemented! taken care off redundancies.
| org_yaml = 'GRCh38' | ||
| PE = linkFiles(config, group, project, outputDir, tuples) | ||
| CMD = [config.get('10x', 'RNA'), outputDir, outputDir, org_yaml] | ||
| snakeMakePath= "{}/bin".format(os.path.join(config.get('Options', 'snakemakeWorkflowBaseDir'))) |
There was a problem hiding this comment.
This is not reflected in the ini file
There was a problem hiding this comment.
Thank you for noticing!
Path updated in the ini file
BRB/PushButton.py
Outdated
| lane_dir = Path(d).parents[1].stem | ||
| current_year = "20" + str(lane_dir)[0:2] | ||
| year_postfix = Path("Sequence_Quality_" + current_year) / Path("Illumina_" + current_year) | ||
| sequencing_type=lane_dir.split("_")[1] |
There was a problem hiding this comment.
Would be great to get rid of the duplicated code here.
There was a problem hiding this comment.
Removed duplicated part
|
Briefly: