-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from nf-core/dev
Dev > Master
- Loading branch information
Showing
36 changed files
with
509 additions
and
366 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,42 @@ | ||
# nf-core/nanoseq bug report | ||
|
||
Hi there! | ||
|
||
Thanks for telling us about a problem with the pipeline. Please delete this text and anything that's not relevant from the template below: | ||
Thanks for telling us about a problem with the pipeline. | ||
Please delete this text and anything that's not relevant from the template below: | ||
|
||
## Describe the bug | ||
|
||
#### Describe the bug | ||
A clear and concise description of what the bug is. | ||
|
||
#### Steps to reproduce | ||
## Steps to reproduce | ||
|
||
Steps to reproduce the behaviour: | ||
|
||
1. Command line: `nextflow run ...` | ||
2. See error: _Please provide your error message_ | ||
|
||
#### Expected behaviour | ||
## Expected behaviour | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
#### System: | ||
- Hardware: [e.g. HPC, Desktop, Cloud...] | ||
- Executor: [e.g. slurm, local, awsbatch...] | ||
- OS: [e.g. CentOS Linux, macOS, Linux Mint...] | ||
- Version [e.g. 7, 10.13.6, 18.3...] | ||
## System | ||
|
||
- Hardware: <!-- [e.g. HPC, Desktop, Cloud...] --> | ||
- Executor: <!-- [e.g. slurm, local, awsbatch...] --> | ||
- OS: <!-- [e.g. CentOS Linux, macOS, Linux Mint...] --> | ||
- Version <!-- [e.g. 7, 10.13.6, 18.3...] --> | ||
|
||
## Nextflow Installation | ||
|
||
- Version: <!-- [e.g. 19.10.0] --> | ||
|
||
## Container engine | ||
|
||
#### Nextflow Installation: | ||
- Version: [e.g. 0.31.0] | ||
- Engine: <!-- [e.g. Conda, Docker or Singularity] --> | ||
- version: <!-- [e.g. 1.0.0] --> | ||
- Image tag: <!-- [e.g. nfcore/nanoseq:1.0.0] --> | ||
|
||
#### Container engine: | ||
- Engine: [e.g. Conda, Docker or Singularity] | ||
- version: [e.g. 1.0.0] | ||
- Image tag: [e.g. nfcore/nanoseq:1.0.0] | ||
## Additional context | ||
|
||
#### Additional context | ||
Add any other context about the problem here. |
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
# nf-core/nanoseq: Changelog | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). | ||
|
||
## v1.0dev - [date] | ||
|
||
Initial release of nf-core/nanoseq, created with the [nf-core](http://nf-co.re/) template. | ||
|
||
### `Added` | ||
|
||
### `Fixed` | ||
|
||
### `Dependencies` | ||
|
||
### `Deprecated` |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
#!/usr/bin/env python | ||
from __future__ import print_function | ||
import argparse | ||
import markdown | ||
import os | ||
import sys | ||
|
||
def convert_markdown(in_fn): | ||
input_md = open(in_fn, mode="r", encoding="utf-8").read() | ||
html = markdown.markdown( | ||
"[TOC]\n" + input_md, | ||
extensions = [ | ||
'pymdownx.extra', | ||
'pymdownx.b64', | ||
'pymdownx.highlight', | ||
'pymdownx.emoji', | ||
'pymdownx.tilde', | ||
'toc' | ||
], | ||
extension_configs = { | ||
'pymdownx.b64': { | ||
'base_path': os.path.dirname(in_fn) | ||
}, | ||
'pymdownx.highlight': { | ||
'noclasses': True | ||
}, | ||
'toc': { | ||
'title': 'Table of Contents' | ||
} | ||
} | ||
) | ||
return html | ||
|
||
def wrap_html(contents): | ||
header = """<!DOCTYPE html><html> | ||
<head> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> | ||
<style> | ||
body { | ||
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; | ||
padding: 3em; | ||
margin-right: 350px; | ||
max-width: 100%; | ||
} | ||
.toc { | ||
position: fixed; | ||
right: 20px; | ||
width: 300px; | ||
padding-top: 20px; | ||
overflow: scroll; | ||
height: calc(100% - 3em - 20px); | ||
} | ||
.toctitle { | ||
font-size: 1.8em; | ||
font-weight: bold; | ||
} | ||
.toc > ul { | ||
padding: 0; | ||
margin: 1rem 0; | ||
list-style-type: none; | ||
} | ||
.toc > ul ul { padding-left: 20px; } | ||
.toc > ul > li > a { display: none; } | ||
img { max-width: 800px; } | ||
pre { | ||
padding: 0.6em 1em; | ||
} | ||
h2 { | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
""" | ||
footer = """ | ||
</div> | ||
</body> | ||
</html> | ||
""" | ||
return header + contents + footer | ||
|
||
|
||
def parse_args(args=None): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument('mdfile', type=argparse.FileType('r'), nargs='?', | ||
help='File to convert. Defaults to stdin.') | ||
parser.add_argument('-o', '--out', type=argparse.FileType('w'), | ||
default=sys.stdout, | ||
help='Output file name. Defaults to stdout.') | ||
return parser.parse_args(args) | ||
|
||
def main(args=None): | ||
args = parse_args(args) | ||
converted_md = convert_markdown(args.mdfile.name) | ||
html = wrap_html(converted_md) | ||
args.out.write(html) | ||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |
Oops, something went wrong.