Reference
Functions aiding and orchestrating the execution and validation of the weave workflow.
File helper functions¶
get_all_seq_dirs(top_dir, server)
¶
Gather and return all sequencing directories from the top_dir
. This is tightly coupled at the moment to the directory that is on RML-BigSky. In the future will need to the take a look at how to do this more generally
Source code in scripts/files.py
is_dir_staged(server, run_dir)
¶
filter check for wheter or not a directory has the appropriate breadcrumbs or not
CopyComplete.txt - file transfer from instrument breadcrumb, blank (won't be there on instruments != NextSeq2k)
RTAComplete.txt - sequencing breadcrumb, CSV file with values: Run Date, Run time, Instrument ID
RunInfo.xml - XML metainformation (RunID, Tiles, etc)
Source code in scripts/files.py
parse_samplesheet(ss)
¶
runid2samplesheet(runid, top_dir=DIRECTORY_CONFIGS['bigsky']['seq'])
¶
Given a valid run id return the path to the sample sheet
Source code in scripts/files.py
Utility helper functions¶
exec_pipeline(configs, dry_run=False, local=False)
¶
Execute the BCL->FASTQ pipeline.
This executes the pipeline.
Source code in scripts/utils.py
valid_runid(id_to_check)
¶
Given an input ID get it's validity against the run id format: YYMMDD_INSTRUMENTID_TIME_FLOWCELLID
Source code in scripts/utils.py
Server configuration functions¶
get_bigsky_seq_dirs()
¶
Get a list of sequence directories, that have the required illumnia file artifacts: RTAComplete.txt - breadcrumb file created by bigsky transfer process and illumnia sequencing
Returns:
Type | Description |
---|---|
list | list of |
Source code in scripts/config.py
get_biowulf_seq_dirs()
¶
Get a list of sequence directories, that have the required illumnia file artifacts: RTAComplete.txt - breadcrumb file created by bigsky transfer process and illumnia sequencing
Returns:
Type | Description |
---|---|
list | list of |
Source code in scripts/config.py
get_current_server()
¶
Return the current server name by looking at the hostname
Returns:
Type | Description |
---|---|
str | one of |
Source code in scripts/config.py
get_resource_config()
¶
Return a dictionary containing server specific references utilized in the workflow for directories or reference files.
Returns:
Type | Description |
---|---|
dict | return configuration key value pairs of current server:: { "sif": "/server/location/to/sif/directory", "mounts": { "refence binding": { "to": "/bind/to", "from": "/bind/from", "mode": "ro/rw" }, ... } |