Skip to content

Commit

Permalink
write RST file
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed Feb 19, 2018
1 parent 2bb2d05 commit 9fafaba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Note: to generate PDF reports, you first need to install [wkhtmltopdf](http://wk
brew install Caskroom/cask/wkhtmltopdf
```

Vaxrank uses [PyEnsembl](https://github.com/openvax/pyensembl) for accessing information about the reference genome. You must install an Ensembl release corresponding to the reference genome associated with the mutations provided to Vaxrank.
Vaxrank uses [PyEnsembl](https://github.com/openvax/pyensembl) for accessing information about the reference genome. You must install an Ensembl release corresponding to the reference genome associated with the mutations provided to Vaxrank.

The latest release for GRCh38 is Ensembl 87:
```
Expand All @@ -46,7 +46,7 @@ The last release for GRCh37 is Ensembl 75:
pyensembl install --release 75 --species human
```

If your variants were called from alignments against hg19 then you can still use GRCh37 but should ignore mitochondrial variants.
If your variants were called from alignments against hg19 then you can still use GRCh37 but should ignore mitochondrial variants.

# Development

Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,20 @@
from setuptools import setup

readme_dir = os.path.dirname(__file__)
readme_filename = os.path.join(readme_dir, 'README.md')
readme_path = os.path.join(readme_dir, 'README.md')

try:
with open(readme_filename, 'r') as f:
with open(readme_path, 'r') as f:
readme = f.read()
except:
logging.warn("Failed to load %s" % readme_filename)
logging.warn("Failed to load %s" % readme_path)
readme = ""

try:
import pypandoc
readme = pypandoc.convert(readme, to='rst', format='md')
with open(readme_path.replace(".md", ".rst")) as f:
f.write(readme)
except:
logging.warn("Conversion of long_description from MD to RST failed")
pass
Expand Down

0 comments on commit 9fafaba

Please sign in to comment.