Skip to content

Commit 2d73f23

Browse files
committed
DOC Update documentation examples
1 parent 4294fb4 commit 2d73f23

File tree

7 files changed

+26
-68
lines changed

7 files changed

+26
-68
lines changed

docs/sources/Organisms.rst

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -81,33 +81,4 @@ When attempting to install an organism if is returned **True** it means that
8181
the organism is already installed, and there is no reason to install again.
8282
Otherwise, a progress bar is displayed to provide information on the download.
8383

84-
Data Set Structure
85-
-------------------
86-
87-
This section provides the technical details necessary if you wish to build your
88-
own reference for others to use automatically. For most users, it will likely
89-
be easier to directly specify the references in the ngless script.
90-
91-
The archives provided by NGLess contain BWA index files, the genome reference
92-
file and a gene annotation file.
93-
94-
::
95-
96-
Name.tar.gz
97-
|
98-
|--- Sequence
99-
| |
100-
| |-- BWAIndex
101-
| |-- genome.fa.gz
102-
| |-- genome.fa.gz.amb
103-
| |-- genome.fa.gz.ann
104-
| |-- genome.fa.gz.bwt
105-
| |-- genome.fa.gz.pac
106-
| |-- genome.fa.gz.sa
107-
|
108-
|--- Annotation
109-
|-- annot.gtf.gz
110-
111-
The basename of Description.tar.gz (Description) will have the description name
112-
of the respective organism (i.e, Mus_musculus.tar.gz).
11384

docs/sources/conf.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,20 +49,14 @@
4949

5050
# General information about the project.
5151
project = u'NGLess'
52-
copyright = u'2013-2020, NGLess Authors'
52+
copyright = u'2013-2022, NGLess Authors'
5353

5454
# The version info for the project you're documenting, acts as replacement for
5555
# |version| and |release|, also used in various other places throughout the
5656
# built documents.
57-
#
58-
p = subprocess.run(['./build-scripts/read-version.sh'],
59-
cwd='../../',
60-
stdout=subprocess.PIPE)
61-
# The full version, including alpha/beta/rc tags.
62-
release = p.stdout.decode('utf-8').strip()
63-
64-
# The short X.Y version.
65-
version = release.split('-')[0]
57+
58+
release = '1.4.0-beta1'
59+
version = '1.4'
6660

6761
# The language for content autogenerated by Sphinx. Refer to documentation
6862
# for a list of supported languages.

docs/sources/default.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ let
2929
meta = {
3030
homepage = "https://github.com/guzzle/guzzle_sphinx_theme";
3131
description = "Sphinx theme";
32-
license = pkgs.licenses.mit;
3332
maintainers = with pkgs.maintainers; [ fridh ];
3433
};
3534
};

docs/sources/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ NGLess
3131

3232
NGLess is best illustrated by an example::
3333

34-
ngless "1.0"
34+
ngless "1.4"
3535
input = paired('ctrl1.fq', 'ctrl2.fq', singles='ctrl-singles.fq')
3636
input = preprocess(input) using |read|:
3737
read = read[5:]

docs/sources/software.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ NGLess internally uses a few other packages to implement specific
44
functionality. As we believe in giving appropriate credit, these pacakges are
55
printed in the citation list of any script that uses them.
66

7-
NGLess version 0.6 uses the following software tools:
8-
9-
- Samtools (used for SAM/BAM handling as well as in the [samtools module](Modules.html): version 1.6
10-
- BWA (used for [map](Functions.html#map)): version 0.7.15
11-
- Prodigal (used for [orf\_find](Functions.html#orf_find)): version 2.6.3 (with a patch to fix a bug [submitted upstream])
7+
NGLess version 1.4 uses the following software tools:
128

9+
- Samtools (used for SAM/BAM handling as well as in the [samtools module](Modules.html): version 2.13
10+
- BWA (used for [map](Functions.html#map)): version 0.7.17
11+
- Minimap (used for [map](Functions.html#map) as an alternative to bwa): version 2.24
12+
- Prodigal (used for [orf\_find](Functions.html#orf_find)): version 2.6.3
13+
- Megahit (used for [assemble](Functions.html#assemble)): version 1.2.9

docs/sources/tutorial-assembly-gp.rst

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,17 @@ of that tutorial before starting this one.
2626

2727
To run ngless, we need write a script. We start with a few imports::
2828

29-
ngless "0.6"
29+
ngless "1.4"
3030

3131

32-
.. _`profiling tutorial`: tutorial-ocean-metagenomics.html
33-
3432
3. Preprocessing
3533

36-
This is as in the `profiling tutorial`_, except that we will be working with a
37-
single sample. You could also use the parallel module to make it easier to work
38-
on all samples::
34+
First, we want to trim the reads based on quality::
3935

4036
sample = 'SAMEA2621155.sampled'
4137
input = load_mocat_sample(sample)
4238

43-
preprocess(input, keep_singles=False) using |read|:
39+
input = preprocess(input, keep_singles=False) using |read|:
4440
read = substrim(read, min_quality=25)
4541
if len(read) < 45:
4642
discard
@@ -62,13 +58,12 @@ Full script
6258

6359
::
6460

65-
ngless "0.6"
66-
61+
ngless "1.4"
6762

6863
sample = 'SAMEA2621155.sampled'
6964
input = load_mocat_sample(sample)
7065

71-
preprocess(input, keep_singles=False) using |read|:
66+
input = preprocess(input, keep_singles=False) using |read|:
7267
read = substrim(read, min_quality=25)
7368
if len(read) < 45:
7469
discard

docs/sources/tutorial-ocean-metagenomics.rst

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ expand the data to a directory called ``ocean-short``.
3434
This is a toy dataset. It is based on real data, but the samples were trimmed
3535
so that they contains only 250k paired-end reads.
3636

37-
The dataset is organized in classical MOCAT style. Ngless does not require this
38-
structure, but this tutorial also demonstrates how to upgrade from your
39-
existing MOCAT-based projects.::
37+
The dataset is organized in so that each directory contains a sample with
38+
multiple fastq files). NGLess does not require this structure, but it is
39+
convenient::
4040

4141
$ find
4242
./SAMEA2621229.sampled
@@ -63,10 +63,9 @@ The rest of this tutorial is an explanation of the steps in this script.
6363

6464
To run ngless, we need write a script. We start with a few imports::
6565

66-
ngless "0.7"
67-
import "parallel" version "0.6"
68-
import "mocat" version "0.0"
69-
import "omrgc" version "0.0"
66+
ngless "1.4"
67+
import "parallel" version "1.0"
68+
import "omrgc" version "1.0"
7069

7170
These will all be used in the tutorial.
7271

@@ -94,7 +93,7 @@ sample.
9493

9594
First, we load the data (the FastQ files)::
9695

97-
input = load_mocat_sample(sample)
96+
input = load_fastq_directory(sample)
9897

9998
And, now, we preprocess the data::
10099

@@ -153,15 +152,14 @@ Full script
153152

154153
Here is the full script::
155154

156-
ngless "0.8"
155+
ngless "1.4"
157156
import "parallel" version "0.0"
158-
import "mocat" version "0.0"
159-
import "omrgc" version "0.0"
157+
import "omrgc" version "1.0"
160158

161159

162160
samples = readlines('tara.demo.short')
163161
sample = lock1(samples)
164-
input = load_mocat_sample(sample)
162+
input = load_fastq_directory(sample)
165163

166164
input = preprocess(input, keep_singles=False) using |read|:
167165
read = substrim(read, min_quality=25)

0 commit comments

Comments
 (0)