sjteresi / TE_Density

Python script calculating transposable element density for all genes in a genome. Publication: https://mobilednajournal.biomedcentral.com/articles/10.1186/s13100-022-00264-4
GNU General Public License v3.0
30 stars 4 forks source link

F/manager context #116

Closed teresi closed 2 years ago

teresi commented 2 years ago

the first commit has an added context manager to the multiprocess manager in an attempt to apply best practices for that just in case it interacts w/ those out of memory errors

the second commit is formatting (update docs, logs, indentation)

I do have some untracked files that I wasn't sure were supposed to be committed though: tests/input_data/test_swap_file.h5 tests/input_data/test_swap_file_SenseSwapped.HDF5

testing

$ make test  # 195 passed, 2 skipped
$ ./process_genome.py ..//TE_Density_Filtered_Gene_and_TE_Annotations/Cleaned_TAIR10_GFF3_genes_main_chromosomes.tsv ../TE_Density_Filtered_Gene_and_TE_Annotations/Cleaned_TAIR10_chr_main_chromosomes.fas.mod.EDTA.TEanno.tsv adiposetoperus -n 2 --output_dir ../TE_Density_Filtered_Gene_and_TE_Annotations/results
...
subsets: 100%|██████████████████████████████████| 30/30 [10:24<00:00, 20.80s/it]