GPatch 0.3.0__py3-none-any.whl

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.
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2018 Adam Diehl
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
@@ -0,0 +1,92 @@
1
+ Metadata-Version: 2.1
2
+ Name: GPatch
3
+ Version: 0.3.0
4
+ Summary: Assemble contigs into a chromosome-scalse pseudo-assembly using alignments to a reference sequence.
5
+ Home-page: https://github.com/adadiehl/GPatch
6
+ Author: Adam Diehl
7
+ Author-email: adadiehl@umich.edu
8
+ License: UNKNOWN
9
+ Keywords: genomics,genome assembly
10
+ Platform: UNKNOWN
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Intended Audience :: Science/Research
16
+ Classifier: Topic :: Scientific/Engineering
17
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
18
+ Classifier: Natural Language :: English
19
+ Description-Content-Type: text/markdown
20
+ Requires-Dist: Bio
21
+ Requires-Dist: pysam
22
+
23
+ # GPatch
24
+ ## Assemble contigs into a chromosome-scalse pseudo-assembly using alignments to a reference sequence.
25
+
26
+ Starting with alignments of contigs to a reference genome, produce a chromosome-scale pseudoassembly by patching gaps between mapped contigs with sequences from the reference.
27
+
28
+ ## Dependencies
29
+ * Python >= v3.7
30
+ * samtools (https://github.com/samtools/samtools)
31
+ * biopython (https://biopython.org/)
32
+ * pysam (https://github.com/pysam-developers/pysam)
33
+ * minimap2 (https://github.com/lh3/minimap2)
34
+
35
+ We recommend using minimap2 for alignment, using the -a option to generate SAM output.
36
+
37
+ ## Installation
38
+
39
+ We recommend installing with conda, into a new environment:
40
+ ```
41
+ conda create -n GPatch -c conda-forge -c bioconda Bio pysam minimap2 samtools GPatch
42
+ ```
43
+
44
+ Install with pip:
45
+ ```
46
+ pip install GPatch
47
+ ```
48
+
49
+ Installation from the github repository is not recommended. However, if you must, follow the steps below:
50
+ 1) git clone https://github.com/adadiehl/GPatch
51
+ 2) cd GPatch/
52
+ 3) python3 -m pip install -e .
53
+
54
+
55
+ ## Usage
56
+ ```
57
+ usage: GPatch [-h] -q SAM/BAM -r FASTA [-x BED] [-b FILENAME] [-m N]
58
+ [-d N] [-f FLOAT] [-e FLOAT]
59
+ ```
60
+
61
+ Starting with alignments of contigs to a reference genome, produce a chromosome-scale pseudoassembly by patching gaps between mapped contigs with sequences from the reference. Reference chromosomes with no mapped contigs are printed to output unchanged.
62
+
63
+ #### Required Arguments
64
+ | Argument | Description |
65
+ |---|---|
66
+ | __-q SAM/BAM, --query_bam SAM/BAM__ | Path to SAM/BAM file containing non-overlapping contig mappings to the reference genome. |
67
+ | __-r FASTA, --reference_fasta FASTA__ | Path to reference genome fasta. |
68
+
69
+ #### Optional Arguments:
70
+ | Argument | Description |
71
+ |---|---|
72
+ | __-h, --help__ | Show this help message and exit. |
73
+ | __-x STR, --prefix STR__ | Prefix to add to output file names. Default=None |
74
+ | __-b FILENAME, --store_final_bam FILENAME__ | Store the final set of primary contig alignments to the given file name. Default: Do not store the final BAM. |
75
+ | __-m N, --min_qual_score N__ | Minimum mapping quality score to retain an alignment. Default=30 |
76
+
77
+
78
+ ## Output
79
+
80
+ GPatch produces three output files:
81
+ | File | Description |
82
+ |---|---|
83
+ | __patched.fasta__ | The final patched genome. |
84
+ | __contigs.bed__ | Location of contigs in the coordinate frame of the patched genome. |
85
+ | __patches.bed__ | Location of patches in the coordinate frame of the reference genome. |
86
+
87
+
88
+ ## Citing GPatch
89
+ Please use the following citation if you use this software in your work:
90
+
91
+ CITATION_HERE
92
+
@@ -0,0 +1,6 @@
1
+ GPatch-0.3.0.dist-info/LICENSE,sha256=7BlC-5xXMV3VWITTxG48u7CXTMZH51XX_i7A_WQofTM,1054
2
+ GPatch-0.3.0.dist-info/METADATA,sha256=OL2qAI8zVk-N_VeRPB4DL4dMIPNt65ljs33RrMrel98,3352
3
+ GPatch-0.3.0.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
4
+ GPatch-0.3.0.dist-info/entry_points.txt,sha256=Ghl6CN8E-Io-lpCVUtV8zdetHk6wYTZ01MLx7eC2t6k,50
5
+ GPatch-0.3.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
6
+ GPatch-0.3.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.36.2)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ GPatch.py = GPatch.GPatch:main
3
+
@@ -0,0 +1 @@
1
+