Skip to content

Commit b024710

Browse files
committed
Simplify definition of intact.check procedure
1 parent d77e5a0 commit b024710

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/cfeintact/intact.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -689,12 +689,6 @@ def check(working_dir: str,
689689
check_small_orfs: bool,
690690
check_distance: bool,
691691
output_csv: bool,
692-
hxb2_forward_orfs: const.ORFsDefinition = const.DEFAULT_FORWARD_ORFs,
693-
hxb2_reverse_orfs: const.ORFsDefinition = const.DEFAULT_REVERSE_ORFS,
694-
hxb2_small_orfs: const.ORFsDefinition = const.DEFAULT_SMALL_FORWARD_ORFS,
695-
hxb2_psi_locus: Tuple[int, int] = const.DEFAULT_PSI_LOCUS,
696-
hxb2_rre_locus: Tuple[int, int] = const.DEFAULT_RRE_LOCUS,
697-
hxb2_msd_site_locus: int = const.DEFAULT_MSD_SITE_LOCUS,
698692
) -> None:
699693
"""
700694
Check if a set of consensus sequences in a FASTA file is cfeintact.
@@ -706,6 +700,13 @@ def check(working_dir: str,
706700
Name of a file containing all consensus sequences.
707701
"""
708702

703+
hxb2_forward_orfs: const.ORFsDefinition = const.DEFAULT_FORWARD_ORFs
704+
hxb2_reverse_orfs: const.ORFsDefinition = const.DEFAULT_REVERSE_ORFS
705+
hxb2_small_orfs: const.ORFsDefinition = const.DEFAULT_SMALL_FORWARD_ORFS
706+
hxb2_psi_locus: Tuple[int, int] = const.DEFAULT_PSI_LOCUS
707+
hxb2_rre_locus: Tuple[int, int] = const.DEFAULT_RRE_LOCUS
708+
hxb2_msd_site_locus: int = const.DEFAULT_MSD_SITE_LOCUS
709+
709710
subtype_choices = {}
710711
for sequence in st.subtype_sequences(subtype):
711712
subtype_choices[str(sequence.id)] = sequence

0 commit comments

Comments
 (0)