pipemake-utils 1.2.2__tar.gz → 1.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pipemake-utils might be problematic. Click here for more details.

Files changed (41) hide show
  1. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/PKG-INFO +1 -1
  2. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/__init__.py +1 -1
  3. pipemake_utils-1.2.3/pipemake_utils/unchunk_blast.py +53 -0
  4. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils.egg-info/PKG-INFO +1 -1
  5. pipemake_utils-1.2.2/pipemake_utils/unchunk_blast.py +0 -39
  6. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/LICENSE +0 -0
  7. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/MANIFEST.in +0 -0
  8. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/README.rst +0 -0
  9. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/add_eggnog_annotations.py +0 -0
  10. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/align.py +0 -0
  11. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/chunk_fasta.py +0 -0
  12. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/codon_alignment.py +0 -0
  13. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/confirm_cds_files.py +0 -0
  14. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/featureCounts_report.py +0 -0
  15. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/filter_gemma.py +0 -0
  16. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/iHS_manhattan_plot.py +0 -0
  17. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/logger.py +0 -0
  18. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/longest_transcript.py +0 -0
  19. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/manhattan_plot.py +0 -0
  20. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/map_orthologs.py +0 -0
  21. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/misc.py +0 -0
  22. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/mk.py +0 -0
  23. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/model.py +0 -0
  24. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/model_inds.py +0 -0
  25. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/model_pop_files.py +0 -0
  26. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/ped_phenotype_file.py +0 -0
  27. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/plot_pca.py +0 -0
  28. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/process_braker.py +0 -0
  29. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/seqDB.py +0 -0
  30. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/softmask.py +0 -0
  31. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/translate_seq_file.py +0 -0
  32. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/vcf.py +0 -0
  33. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils/z_normalize.py +0 -0
  34. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils.egg-info/SOURCES.txt +0 -0
  35. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils.egg-info/dependency_links.txt +0 -0
  36. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils.egg-info/entry_points.txt +0 -0
  37. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils.egg-info/requires.txt +0 -0
  38. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/pipemake_utils.egg-info/top_level.txt +0 -0
  39. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/requirements.txt +0 -0
  40. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/setup.cfg +0 -0
  41. {pipemake_utils-1.2.2 → pipemake_utils-1.2.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pipemake_utils
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Pipemake Utilities
5
5
  Home-page: https://github.com/kocherlab/pipemake_utils
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  # Basic Information
2
2
  __name__ = "pipemake_utils"
3
- __version__ = "1.2.2"
3
+ __version__ = "1.2.3"
4
4
  __summary__ = "Pipemake Utilities"
5
5
  __url__ = "https://github.com/kocherlab/pipemake_utils"
6
6
  __code__ = "https://github.com/kocherlab/pipemake_utils"
@@ -0,0 +1,53 @@
1
+ import csv
2
+ import argparse
3
+
4
+ from pipemake_utils.logger import startLogger, logArgDict
5
+
6
+
7
+ def unchunkArgs():
8
+ parser = argparse.ArgumentParser()
9
+ parser.add_argument(
10
+ "--chunked-blast",
11
+ help="Input file containing chunked BLAST results.",
12
+ required=True,
13
+ )
14
+ parser.add_argument(
15
+ "--unchunked-blast",
16
+ help="Output file for unchunked BLAST results.",
17
+ default="unchunked_blast.out",
18
+ )
19
+ return vars(parser.parse_args())
20
+
21
+
22
+ def unchunkBlast(input_filename, output_filename):
23
+ with open(input_filename, "r") as input_file, open(
24
+ output_filename, "w"
25
+ ) as output_file:
26
+ input_reader = csv.reader(input_file, delimiter="\t")
27
+ for input_row in input_reader:
28
+ # Process the chunked header
29
+ input_header, input_range = input_row[0].split(":")
30
+ input_start, _ = map(int, input_range.split("-"))
31
+
32
+ # Update the input_row with the unchunked header and adjusted positions
33
+ input_row[0] = input_header
34
+ input_row[3] = input_header
35
+ input_row[9] = int(input_row[9]) + input_start - 1
36
+ input_row[10] = int(input_row[10]) + input_start - 1
37
+
38
+ # Write the modified row to the output file
39
+ output_file.write("\t".join(map(str, input_row)) + "\n")
40
+
41
+
42
+ def main():
43
+ args = unchunkArgs()
44
+
45
+ # Start logger and log the arguments
46
+ startLogger("unchunked_blast.log")
47
+ logArgDict(args)
48
+
49
+ unchunkBlast(args["chunked_blast"], args["unchunked_blast"])
50
+
51
+
52
+ if __name__ == "__main__":
53
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pipemake-utils
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Pipemake Utilities
5
5
  Home-page: https://github.com/kocherlab/pipemake_utils
6
6
  License: MIT
@@ -1,39 +0,0 @@
1
- import csv
2
- import argparse
3
-
4
- from pipemake_utils.logger import startLogger, logArgDict
5
-
6
- def unchunkArgs():
7
- parser = argparse.ArgumentParser()
8
- parser.add_argument("--chunked-blast", help = "Input file containing chunked BLAST results.", required = True)
9
- parser.add_argument("--unchunked-blast", help = "Output file for unchunked BLAST results.", default = "unchunked_blast.out")
10
- return vars(parser.parse_args())
11
-
12
- def unchunkBlast(input_filename, output_filename):
13
- with open(input_filename, 'r') as input_file, open(output_filename, 'w') as output_file:
14
- input_reader = csv.reader(input_file, delimiter='\t')
15
- for input_row in input_reader:
16
-
17
- # Process the chunked header
18
- input_header, input_range = input_row[0].split(':')
19
- input_start, _ = map(int, input_range.split('-'))
20
-
21
- # Update the input_row with the unchunked header and adjusted positions
22
- input_row[0] = input_header
23
- input_row[6] = int(input_row[6]) + input_start - 1
24
- input_row[7] = int(input_row[7]) + input_start - 1
25
-
26
- # Write the modified row to the output file
27
- output_file.write('\t'.join(map(str, input_row)) + '\n')
28
-
29
- def main():
30
- args = unchunkArgs()
31
-
32
- # Start logger and log the arguments
33
- startLogger("unchunked_blast.log")
34
- logArgDict(args)
35
-
36
- unchunkBlast(args['chunked_blast'], args['unchunked_blast'])
37
-
38
- if __name__ == "__main__":
39
- main()
File without changes
File without changes
File without changes