Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.9.0 #79

Merged
merged 39 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
c5bed7b
Merge pull request #68 from UMCUGenetics/release/v1.8.0
rernst Oct 3, 2023
503d171
Merge pull request #70 from UMCUGenetics/hotfix/v1.8.1
rernst Oct 16, 2023
ace575e
Merge pull request #72 from UMCUGenetics/hotfix/v1.8.2
ellendejong Oct 25, 2023
24cd76a
Merge pull request #74 from UMCUGenetics/hotfix/v1.8.3
rernst Oct 27, 2023
ee4b19e
Merge pull request #76 from UMCUGenetics/hotfix/v1.8.4
rernst Jan 8, 2024
c217533
WIP, new samplesheet writer.
rernst Jan 18, 2024
824434f
Add orientation fixes
rernst Jan 19, 2024
18d322c
Add orientation fixes
rernst Jan 19, 2024
e816fc2
Remove old update samplesheet code
rernst Jan 19, 2024
eeb11c4
Update sequencing workflow
rernst Jan 19, 2024
890feda
Add illumina tests
rernst Jan 22, 2024
2b45a43
Move to get_sample_sequence_index to utils and test
rernst Jan 22, 2024
0d33a9a
Enable unit test @ master
rernst Jan 22, 2024
20e8018
Fix for single index samples
rernst Jan 25, 2024
1dc667d
Add some extra fields
rernst Feb 2, 2024
163d21e
Add 0 Mismatches setting for barcodes
rernst Feb 2, 2024
67f35c6
Code review changes
rernst Feb 12, 2024
02fe411
Layout
rernst Feb 12, 2024
0c5ee77
Add indications_exome_equivalent
rernst Feb 13, 2024
a1d0f38
Merge pull request #78 from UMCUGenetics/feature/deep_seq_import
rernst Feb 13, 2024
8715904
Merge branch 'develop' into feature/illumina_samplesheet_v2
rernst Feb 13, 2024
94848db
Change volume
rernst Feb 15, 2024
6ccd9cd
Add extra required conversion settings
rernst Feb 15, 2024
4bf19f0
Tweaks based on lab input
rernst Feb 20, 2024
9431630
python3
rernst Feb 21, 2024
f40ed38
python3
rernst Feb 21, 2024
9192ec4
Remove debug prints
rernst Feb 23, 2024
97a16df
Merge pull request #77 from UMCUGenetics/feature/illumina_samplesheet_v2
rernst Feb 23, 2024
42961c5
Merge branch 'develop' into release/v1.9.0
rernst Feb 23, 2024
9be5ff2
Fix 'map' object is not subscriptable
rernst Feb 29, 2024
b45a587
Add default setting for TrimUMI
rernst Feb 29, 2024
2e6bcec
Change or to and
rernst Feb 29, 2024
b6a9dbd
Fix lane, merge, ped exports
rernst Mar 1, 2024
a2ceef6
Sort by lane
rernst Mar 1, 2024
af57ce0
Add duplicate code todo
rernst Mar 4, 2024
4eca979
Fix file encoding
rernst Mar 5, 2024
d1969ac
Fix for NovaSeqXPlus workflow configuration
rernst Mar 8, 2024
36ed301
Add Dx NovaSeqXPlus Run v1.0
rernst Mar 8, 2024
f345fc9
Remove debug comment
rernst Mar 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 25 additions & 26 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,39 @@ name: Python (flake8, pytest)

on:
push:
branches: [main, develop]
branches: [master, develop]
pull_request:
branches: [main, develop]
branches: [master, develop]

jobs:
build:

runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: [3.6]

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: "Install Apache package"
run: sudo apt install -y apache2-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: "Install Apache package"
run: sudo apt install -y apache2-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
10 changes: 3 additions & 7 deletions clarity_epp.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def export_hamilton(args):

def export_illumina(args):
"""Export (updated) illumina samplesheet."""
clarity_epp.export.illumina.update_samplesheet(
lims, args.process_id, args.artifact_id, args.output_file, args.conversion_tool
clarity_epp.export.illumina.create_samplesheet(
lims, args.process_id, args.output_file
)


Expand Down Expand Up @@ -287,13 +287,9 @@ def placement_pipetting(args):
parser_export_hamilton.set_defaults(func=export_hamilton)

parser_export_illumina = subparser_export.add_parser(
'illumina', help='Export updated illumina samplesheet', parents=[output_parser]
'illumina', help='Export illumina samplesheet', parents=[output_parser]
)
parser_export_illumina.add_argument('process_id', help='Clarity lims process id')
parser_export_illumina.add_argument('artifact_id', help='Clarity lims samplesheet artifact id')
parser_export_illumina.add_argument(
'-c', '--conversion_tool', choices=['bcl2fastq', 'bclconvert'], default='bcl2fastq', help='Illumina conversion tool'
)
parser_export_illumina.set_defaults(func=export_illumina)

parser_export_labels = subparser_export.add_parser('labels', help='Export container labels', parents=[output_parser])
Expand Down
4 changes: 2 additions & 2 deletions clarity_epp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def get_sample_artifacts_from_pool(lims, pool_artifact):
# Check if sample_artifact with 2 samples are from the same person
if len(sample_artifact.samples) == 2:
if (
'Dx Persoons ID' in sample_artifact.samples[0].udf or
'Dx Persoons ID' in sample_artifact.samples[1].udf or
'Dx Persoons ID' in sample_artifact.samples[0].udf and
'Dx Persoons ID' in sample_artifact.samples[1].udf and
sample_artifact.samples[0].udf['Dx Persoons ID'] == sample_artifact.samples[1].udf['Dx Persoons ID']
):
sample_artifacts.append(sample_artifact)
Expand Down
2 changes: 1 addition & 1 deletion clarity_epp/export/bioanalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def samplesheet(lims, process_id, output_file):
}

# Get sample placement
for placement, artifact in process.output_containers()[0].placements.iteritems():
for placement, artifact in process.output_containers()[0].placements.items():
placement = ''.join(placement.split(':'))
plate[placement]['name'] = artifact.name
plate[placement]['comment'] = ''
Expand Down
4 changes: 2 additions & 2 deletions clarity_epp/export/hamilton.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def samplesheet_filling_out(lims, process_id, output_file):
process = Process(lims, id=process_id)
well_plate = {}

for placement, artifact in process.output_containers()[0].placements.iteritems():
for placement, artifact in process.output_containers()[0].placements.items():
placement = ''.join(placement.split(':'))
well_plate[placement] = artifact.samples[0].udf['Dx Fractienummer']

Expand All @@ -29,7 +29,7 @@ def samplesheet_purify(lims, process_id, output_file):
parent_process_barcode = process.parent_processes()[0].output_containers()[0].name
well_plate = {}

for placement, artifact in process.output_containers()[0].placements.iteritems():
for placement, artifact in process.output_containers()[0].placements.items():
placement = ''.join(placement.split(':'))
well_plate[placement] = artifact.samples[0].udf['Dx Fractienummer']

Expand Down
Loading
Loading