Skip to content

Commit

Permalink
MAINT: add threads/jobs primitives (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
cherman2 authored Feb 13, 2024
1 parent c78541c commit 2fddbf0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions q2_cutadapt/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
List,
Str,
Bool,
Threads,
)
from q2_types.multiplexed_sequences import (
MultiplexedSingleEndBarcodeInSequence,
Expand Down Expand Up @@ -53,7 +54,7 @@
'demultiplexed_sequences': SampleData[SequencesWithQuality],
},
parameters={
'cores': Int % Range(1, None),
'cores': Threads,
'adapter': List[Str],
'front': List[Str],
'anywhere': List[Str],
Expand Down Expand Up @@ -144,7 +145,7 @@
'demultiplexed_sequences': SampleData[PairedEndSequencesWithQuality],
},
parameters={
'cores': Int % Range(1, None),
'cores': Threads,
'adapter_f': List[Str],
'front_f': List[Str],
'anywhere_f': List[Str],
Expand Down Expand Up @@ -267,7 +268,7 @@
'batch_size': Int % Range(0, None),
'minimum_length': Int % Range(1, None),
'cut': Int,
'cores': Int % Range(1, None),
'cores': Threads,
},
outputs=[
('per_sample_sequences', SampleData[SequencesWithQuality]),
Expand Down Expand Up @@ -334,7 +335,7 @@
'batch_size': Int % Range(0, None),
'minimum_length': Int % Range(1, None),
'mixed_orientation': Bool,
'cores': Int % Range(1, None),
'cores': Threads,
},
outputs=[
('per_sample_sequences', SampleData[PairedEndSequencesWithQuality]),
Expand Down

0 comments on commit 2fddbf0

Please sign in to comment.