Skip to content

Commit

Permalink
Merge pull request #52 from clinical-genomics-uppsala/develop
Browse files Browse the repository at this point in the history
chore: dev to main
  • Loading branch information
padraicc authored Feb 28, 2024
2 parents cb4c5f0 + a780bee commit b55f9e4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
hydra-genetics==0.15.0
pandas>=1.3.1
pulp<2.8
snakemake==7.22.0
singularity==3.0.0
jinja2==3.0.1
networkx
drmaa
cyvcf2==0.30.16
8 changes: 4 additions & 4 deletions start_HG_marvin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ module load singularity/3.7.1

poirotFolder=/beegfs-storage/projects/wp3/nobackup/TWIST/Bin/Poirot

python3.9 -m venv ${poirotFolder}/hydra_env
source ${poirotFolder}/hydra_env/bin/activate
pip install -r ${poirotFolder}/requirements.txt

fastqFolder=$1
sequencerun=$2 #Sequence ID
startDir=$PWD
Expand All @@ -38,6 +34,10 @@ rsync -ru ${poirotFolder}/config /scratch/wp3/TWIST/${sequencerun}/ && \

cd /scratch/wp3/TWIST/${sequencerun}/ && \

python3.9 -m venv hydra_env && \
source hydra_env/bin/activate && \
pip install -r ${poirotFolder}/requirements.txt && \

# Create sample and unit files
hydra-genetics create-input-files -d ${fastqFolder} -t N --tc 0 -f && \

Expand Down
19 changes: 9 additions & 10 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,15 @@ def get_glnexus_input(wildcards, input):
def compile_output_list(wildcards):
output_files = []
types = set([unit.type for unit in units.itertuples()])
for output, values in output_json.items():
if values["name"] == "_copy_upd_regions_bed":
output_files += set(
[
output.format(sample=sample, type=unit_type)
for sample in samples[samples.trio_member == "proband"].index
for unit_type in get_unit_types(units, sample)
if unit_type in set(output_json[output]["types"]).intersection(types)
]
)
for output in output_json:
if output == "results/{sample}/{sample}.upd_regions.bed":
for sample in samples[samples.trio_member == "proband"].index:
proband_trio_id = samples[samples.index == sample].trioid.iloc[0]
trio_num = samples[samples.trioid == proband_trio_id].shape[0]
if trio_num != 3:
continue
else:
output_files.append(output.format(sample=sample))
else:
output_files += set(
[
Expand Down

0 comments on commit b55f9e4

Please sign in to comment.