GPatch 0.3.0__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.
- GPatch-0.3.0/CODE_OF_CONDUCT.md +76 -0
- GPatch-0.3.0/GPatch.egg-info/PKG-INFO +88 -0
- GPatch-0.3.0/GPatch.egg-info/SOURCES.txt +14 -0
- GPatch-0.3.0/GPatch.egg-info/dependency_links.txt +1 -0
- GPatch-0.3.0/GPatch.egg-info/entry_points.txt +3 -0
- GPatch-0.3.0/GPatch.egg-info/not-zip-safe +1 -0
- GPatch-0.3.0/GPatch.egg-info/requires.txt +2 -0
- GPatch-0.3.0/GPatch.egg-info/top_level.txt +1 -0
- GPatch-0.3.0/LICENSE +19 -0
- GPatch-0.3.0/MANIFEST.in +4 -0
- GPatch-0.3.0/PKG-INFO +88 -0
- GPatch-0.3.0/README.md +69 -0
- GPatch-0.3.0/pyproject.toml +2 -0
- GPatch-0.3.0/requirements.txt +2 -0
- GPatch-0.3.0/setup.cfg +4 -0
- GPatch-0.3.0/setup.py +73 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
+
size, disability, ethnicity, sex characteristics, gender identity and expression,
|
|
9
|
+
level of experience, education, socio-economic status, nationality, personal
|
|
10
|
+
appearance, race, religion, or sexual identity and orientation.
|
|
11
|
+
|
|
12
|
+
## Our Standards
|
|
13
|
+
|
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
|
15
|
+
include:
|
|
16
|
+
|
|
17
|
+
* Using welcoming and inclusive language
|
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
|
19
|
+
* Gracefully accepting constructive criticism
|
|
20
|
+
* Focusing on what is best for the community
|
|
21
|
+
* Showing empathy towards other community members
|
|
22
|
+
|
|
23
|
+
Examples of unacceptable behavior by participants include:
|
|
24
|
+
|
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
* Public or private harassment
|
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
|
+
|
|
34
|
+
## Our Responsibilities
|
|
35
|
+
|
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
+
response to any instances of unacceptable behavior.
|
|
39
|
+
|
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
+
threatening, offensive, or harmful.
|
|
45
|
+
|
|
46
|
+
## Scope
|
|
47
|
+
|
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
+
when an individual is representing the project or its community. Examples of
|
|
50
|
+
representing a project or community include using an official project e-mail
|
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
|
53
|
+
further defined and clarified by project maintainers.
|
|
54
|
+
|
|
55
|
+
## Enforcement
|
|
56
|
+
|
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
+
reported by contacting the project team at adadiehl@umich.edu. All
|
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
|
63
|
+
|
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
+
members of the project's leadership.
|
|
67
|
+
|
|
68
|
+
## Attribution
|
|
69
|
+
|
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
72
|
+
|
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
|
74
|
+
|
|
75
|
+
For answers to common questions about this code of conduct, see
|
|
76
|
+
https://www.contributor-covenant.org/faq
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
Description: # GPatch
|
|
10
|
+
## Assemble contigs into a chromosome-scalse pseudo-assembly using alignments to a reference sequence.
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
## Dependencies
|
|
15
|
+
* Python >= v3.7
|
|
16
|
+
* samtools (https://github.com/samtools/samtools)
|
|
17
|
+
* biopython (https://biopython.org/)
|
|
18
|
+
* pysam (https://github.com/pysam-developers/pysam)
|
|
19
|
+
* minimap2 (https://github.com/lh3/minimap2)
|
|
20
|
+
|
|
21
|
+
We recommend using minimap2 for alignment, using the -a option to generate SAM output.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
We recommend installing with conda, into a new environment:
|
|
26
|
+
```
|
|
27
|
+
conda create -n GPatch -c conda-forge -c bioconda Bio pysam minimap2 samtools GPatch
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Install with pip:
|
|
31
|
+
```
|
|
32
|
+
pip install GPatch
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Installation from the github repository is not recommended. However, if you must, follow the steps below:
|
|
36
|
+
1) git clone https://github.com/adadiehl/GPatch
|
|
37
|
+
2) cd GPatch/
|
|
38
|
+
3) python3 -m pip install -e .
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
```
|
|
43
|
+
usage: GPatch [-h] -q SAM/BAM -r FASTA [-x BED] [-b FILENAME] [-m N]
|
|
44
|
+
[-d N] [-f FLOAT] [-e FLOAT]
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
#### Required Arguments
|
|
50
|
+
| Argument | Description |
|
|
51
|
+
|---|---|
|
|
52
|
+
| __-q SAM/BAM, --query_bam SAM/BAM__ | Path to SAM/BAM file containing non-overlapping contig mappings to the reference genome. |
|
|
53
|
+
| __-r FASTA, --reference_fasta FASTA__ | Path to reference genome fasta. |
|
|
54
|
+
|
|
55
|
+
#### Optional Arguments:
|
|
56
|
+
| Argument | Description |
|
|
57
|
+
|---|---|
|
|
58
|
+
| __-h, --help__ | Show this help message and exit. |
|
|
59
|
+
| __-x STR, --prefix STR__ | Prefix to add to output file names. Default=None |
|
|
60
|
+
| __-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. |
|
|
61
|
+
| __-m N, --min_qual_score N__ | Minimum mapping quality score to retain an alignment. Default=30 |
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## Output
|
|
65
|
+
|
|
66
|
+
GPatch produces three output files:
|
|
67
|
+
| File | Description |
|
|
68
|
+
|---|---|
|
|
69
|
+
| __patched.fasta__ | The final patched genome. |
|
|
70
|
+
| __contigs.bed__ | Location of contigs in the coordinate frame of the patched genome. |
|
|
71
|
+
| __patches.bed__ | Location of patches in the coordinate frame of the reference genome. |
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Citing GPatch
|
|
75
|
+
Please use the following citation if you use this software in your work:
|
|
76
|
+
|
|
77
|
+
CITATION_HERE
|
|
78
|
+
Keywords: genomics,genome assembly
|
|
79
|
+
Platform: UNKNOWN
|
|
80
|
+
Classifier: Development Status :: 4 - Beta
|
|
81
|
+
Classifier: Programming Language :: Python :: 3
|
|
82
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
83
|
+
Classifier: Operating System :: OS Independent
|
|
84
|
+
Classifier: Intended Audience :: Science/Research
|
|
85
|
+
Classifier: Topic :: Scientific/Engineering
|
|
86
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
87
|
+
Classifier: Natural Language :: English
|
|
88
|
+
Description-Content-Type: text/markdown
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
MANIFEST.in
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
./CODE_OF_CONDUCT.md
|
|
6
|
+
./LICENSE
|
|
7
|
+
./requirements.txt
|
|
8
|
+
GPatch.egg-info/PKG-INFO
|
|
9
|
+
GPatch.egg-info/SOURCES.txt
|
|
10
|
+
GPatch.egg-info/dependency_links.txt
|
|
11
|
+
GPatch.egg-info/entry_points.txt
|
|
12
|
+
GPatch.egg-info/not-zip-safe
|
|
13
|
+
GPatch.egg-info/requires.txt
|
|
14
|
+
GPatch.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
GPatch-0.3.0/LICENSE
ADDED
|
@@ -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.
|
GPatch-0.3.0/MANIFEST.in
ADDED
GPatch-0.3.0/PKG-INFO
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
Description: # GPatch
|
|
10
|
+
## Assemble contigs into a chromosome-scalse pseudo-assembly using alignments to a reference sequence.
|
|
11
|
+
|
|
12
|
+
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.
|
|
13
|
+
|
|
14
|
+
## Dependencies
|
|
15
|
+
* Python >= v3.7
|
|
16
|
+
* samtools (https://github.com/samtools/samtools)
|
|
17
|
+
* biopython (https://biopython.org/)
|
|
18
|
+
* pysam (https://github.com/pysam-developers/pysam)
|
|
19
|
+
* minimap2 (https://github.com/lh3/minimap2)
|
|
20
|
+
|
|
21
|
+
We recommend using minimap2 for alignment, using the -a option to generate SAM output.
|
|
22
|
+
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
We recommend installing with conda, into a new environment:
|
|
26
|
+
```
|
|
27
|
+
conda create -n GPatch -c conda-forge -c bioconda Bio pysam minimap2 samtools GPatch
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Install with pip:
|
|
31
|
+
```
|
|
32
|
+
pip install GPatch
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Installation from the github repository is not recommended. However, if you must, follow the steps below:
|
|
36
|
+
1) git clone https://github.com/adadiehl/GPatch
|
|
37
|
+
2) cd GPatch/
|
|
38
|
+
3) python3 -m pip install -e .
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Usage
|
|
42
|
+
```
|
|
43
|
+
usage: GPatch [-h] -q SAM/BAM -r FASTA [-x BED] [-b FILENAME] [-m N]
|
|
44
|
+
[-d N] [-f FLOAT] [-e FLOAT]
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
#### Required Arguments
|
|
50
|
+
| Argument | Description |
|
|
51
|
+
|---|---|
|
|
52
|
+
| __-q SAM/BAM, --query_bam SAM/BAM__ | Path to SAM/BAM file containing non-overlapping contig mappings to the reference genome. |
|
|
53
|
+
| __-r FASTA, --reference_fasta FASTA__ | Path to reference genome fasta. |
|
|
54
|
+
|
|
55
|
+
#### Optional Arguments:
|
|
56
|
+
| Argument | Description |
|
|
57
|
+
|---|---|
|
|
58
|
+
| __-h, --help__ | Show this help message and exit. |
|
|
59
|
+
| __-x STR, --prefix STR__ | Prefix to add to output file names. Default=None |
|
|
60
|
+
| __-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. |
|
|
61
|
+
| __-m N, --min_qual_score N__ | Minimum mapping quality score to retain an alignment. Default=30 |
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## Output
|
|
65
|
+
|
|
66
|
+
GPatch produces three output files:
|
|
67
|
+
| File | Description |
|
|
68
|
+
|---|---|
|
|
69
|
+
| __patched.fasta__ | The final patched genome. |
|
|
70
|
+
| __contigs.bed__ | Location of contigs in the coordinate frame of the patched genome. |
|
|
71
|
+
| __patches.bed__ | Location of patches in the coordinate frame of the reference genome. |
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
## Citing GPatch
|
|
75
|
+
Please use the following citation if you use this software in your work:
|
|
76
|
+
|
|
77
|
+
CITATION_HERE
|
|
78
|
+
Keywords: genomics,genome assembly
|
|
79
|
+
Platform: UNKNOWN
|
|
80
|
+
Classifier: Development Status :: 4 - Beta
|
|
81
|
+
Classifier: Programming Language :: Python :: 3
|
|
82
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
83
|
+
Classifier: Operating System :: OS Independent
|
|
84
|
+
Classifier: Intended Audience :: Science/Research
|
|
85
|
+
Classifier: Topic :: Scientific/Engineering
|
|
86
|
+
Classifier: Topic :: Scientific/Engineering :: Information Analysis
|
|
87
|
+
Classifier: Natural Language :: English
|
|
88
|
+
Description-Content-Type: text/markdown
|
GPatch-0.3.0/README.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# GPatch
|
|
2
|
+
## Assemble contigs into a chromosome-scalse pseudo-assembly using alignments to a reference sequence.
|
|
3
|
+
|
|
4
|
+
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.
|
|
5
|
+
|
|
6
|
+
## Dependencies
|
|
7
|
+
* Python >= v3.7
|
|
8
|
+
* samtools (https://github.com/samtools/samtools)
|
|
9
|
+
* biopython (https://biopython.org/)
|
|
10
|
+
* pysam (https://github.com/pysam-developers/pysam)
|
|
11
|
+
* minimap2 (https://github.com/lh3/minimap2)
|
|
12
|
+
|
|
13
|
+
We recommend using minimap2 for alignment, using the -a option to generate SAM output.
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
We recommend installing with conda, into a new environment:
|
|
18
|
+
```
|
|
19
|
+
conda create -n GPatch -c conda-forge -c bioconda Bio pysam minimap2 samtools GPatch
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Install with pip:
|
|
23
|
+
```
|
|
24
|
+
pip install GPatch
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Installation from the github repository is not recommended. However, if you must, follow the steps below:
|
|
28
|
+
1) git clone https://github.com/adadiehl/GPatch
|
|
29
|
+
2) cd GPatch/
|
|
30
|
+
3) python3 -m pip install -e .
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## Usage
|
|
34
|
+
```
|
|
35
|
+
usage: GPatch [-h] -q SAM/BAM -r FASTA [-x BED] [-b FILENAME] [-m N]
|
|
36
|
+
[-d N] [-f FLOAT] [-e FLOAT]
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
#### Required Arguments
|
|
42
|
+
| Argument | Description |
|
|
43
|
+
|---|---|
|
|
44
|
+
| __-q SAM/BAM, --query_bam SAM/BAM__ | Path to SAM/BAM file containing non-overlapping contig mappings to the reference genome. |
|
|
45
|
+
| __-r FASTA, --reference_fasta FASTA__ | Path to reference genome fasta. |
|
|
46
|
+
|
|
47
|
+
#### Optional Arguments:
|
|
48
|
+
| Argument | Description |
|
|
49
|
+
|---|---|
|
|
50
|
+
| __-h, --help__ | Show this help message and exit. |
|
|
51
|
+
| __-x STR, --prefix STR__ | Prefix to add to output file names. Default=None |
|
|
52
|
+
| __-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. |
|
|
53
|
+
| __-m N, --min_qual_score N__ | Minimum mapping quality score to retain an alignment. Default=30 |
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
## Output
|
|
57
|
+
|
|
58
|
+
GPatch produces three output files:
|
|
59
|
+
| File | Description |
|
|
60
|
+
|---|---|
|
|
61
|
+
| __patched.fasta__ | The final patched genome. |
|
|
62
|
+
| __contigs.bed__ | Location of contigs in the coordinate frame of the patched genome. |
|
|
63
|
+
| __patches.bed__ | Location of patches in the coordinate frame of the reference genome. |
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
## Citing GPatch
|
|
67
|
+
Please use the following citation if you use this software in your work:
|
|
68
|
+
|
|
69
|
+
CITATION_HERE
|
GPatch-0.3.0/setup.cfg
ADDED
GPatch-0.3.0/setup.py
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
|
|
3
|
+
if sys.version_info > (3, ) and sys.version_info < (3, 7):
|
|
4
|
+
sys.exit("ERROR: GPatch requires Python 3.7 or greater")
|
|
5
|
+
|
|
6
|
+
try:
|
|
7
|
+
from setuptools import setup, find_packages
|
|
8
|
+
except ImportError:
|
|
9
|
+
from ez_setup import use_setuptools
|
|
10
|
+
use_setuptools()
|
|
11
|
+
|
|
12
|
+
from setuptools import setup, find_packages
|
|
13
|
+
from pathlib import Path
|
|
14
|
+
from glob import glob
|
|
15
|
+
|
|
16
|
+
def readme():
|
|
17
|
+
if sys.version_info > (3, ):
|
|
18
|
+
with open(Path(__file__).parent.resolve() / 'README.md', encoding='utf-8') as md:
|
|
19
|
+
return md.read()
|
|
20
|
+
else:
|
|
21
|
+
with open('README.md') as md:
|
|
22
|
+
return md.read()
|
|
23
|
+
|
|
24
|
+
def main():
|
|
25
|
+
|
|
26
|
+
metadata = dict(
|
|
27
|
+
name="GPatch",
|
|
28
|
+
version="0.3.0",
|
|
29
|
+
author="Adam Diehl",
|
|
30
|
+
author_email="adadiehl@umich.edu",
|
|
31
|
+
description="Assemble contigs into a chromosome-scalse pseudo-assembly using alignments to a reference sequence.",
|
|
32
|
+
long_description=readme(),
|
|
33
|
+
long_description_content_type="text/markdown",
|
|
34
|
+
url="https://github.com/adadiehl/GPatch",
|
|
35
|
+
packages = find_packages(),
|
|
36
|
+
package_data = {
|
|
37
|
+
'GPatch': [
|
|
38
|
+
"LICENSE",
|
|
39
|
+
"CODE_OF_CONDUCT.md"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
setup_requires=[
|
|
43
|
+
'Bio',
|
|
44
|
+
'pysam'
|
|
45
|
+
],
|
|
46
|
+
install_requires=[
|
|
47
|
+
'Bio',
|
|
48
|
+
'pysam'
|
|
49
|
+
],
|
|
50
|
+
entry_points={
|
|
51
|
+
'console_scripts': [
|
|
52
|
+
'GPatch.py = GPatch.GPatch:main'
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
classifiers=[
|
|
56
|
+
"Development Status :: 4 - Beta",
|
|
57
|
+
"Programming Language :: Python :: 3",
|
|
58
|
+
"License :: OSI Approved :: MIT License",
|
|
59
|
+
"Operating System :: OS Independent",
|
|
60
|
+
"Intended Audience :: Science/Research",
|
|
61
|
+
"Topic :: Scientific/Engineering",
|
|
62
|
+
"Topic :: Scientific/Engineering :: Information Analysis",
|
|
63
|
+
"Natural Language :: English"
|
|
64
|
+
],
|
|
65
|
+
keywords = "genomics, genome assembly",
|
|
66
|
+
include_package_data=True,
|
|
67
|
+
zip_safe=False,
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
setup(**metadata)
|
|
71
|
+
|
|
72
|
+
if __name__ == "__main__":
|
|
73
|
+
main()
|