Skip to content

Sequential processing#16

Merged
mohammedkhalfan merged 8 commits intogencorefacility:masterfrom
YuWei-CH:sequential-processing-step4
Aug 6, 2024
Merged

Sequential processing#16
mohammedkhalfan merged 8 commits intogencorefacility:masterfrom
YuWei-CH:sequential-processing-step4

Conversation

@YuWei-CH
Copy link
Copy Markdown
Contributor

@YuWei-CH YuWei-CH commented Jul 8, 2024

For Test:

  1. Auto-remove in test_reform.py: Implement a feature to automatically remove reformed files in the test_data folder before and after the execution of test_reform.py. This feature ensures that the test_data folder remains clean and unaffected by previous tests.
  2. New test cases: Add test case 14 and 15 to test sequential input.

For Sequential Processing:

  1. Multiple input support in argparse: Modify the argument parser to support multiple input files. Store the positions and names of input files in lists and pass them to the main function.
  2. Iteration of Positions: Use a for-loop to iterate over the list of positions or sequences (up seq and down seq) to find the position of insertion or modification. Since positions are based on the original sequence, recalculate the current position based on previous modifications after obtaining the initial position. Note that the position correction in this PR does not support positions obtained from up seq and down seq.
  3. Sequential Processing: After obtaining the position, retrieve a pair of in.fa and in.gtf files from the list and pass them to index_fasta() and create_new_gff().
  4. Temporary Files: Create two temporary files (xxx.fa and xxx.gtf (GFF3)) to store reformed files. These temporary files will be used as reference sequences in the subsequent iterations of the for-loop.

Resolve Conflict:

  1. Merge the read compressed feature from use-gz into for-loop of sequential processing.

@YuWei-CH YuWei-CH changed the title Sequential processing step4 Sequential processing -- STEP4 Jul 8, 2024
@YuWei-CH YuWei-CH changed the title Sequential processing -- STEP4 Sequential processing -- STEP1 Jul 12, 2024
@YuWei-CH YuWei-CH changed the title Sequential processing -- STEP1 Sequential processing Jul 12, 2024
@mohammedkhalfan mohammedkhalfan merged commit bb26ef7 into gencorefacility:master Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants