Skip to content

Commit 43c3bcb

Browse files
committed
DOC Document backwards compatibility fixes
1 parent 3f22340 commit 43c3bcb

File tree

3 files changed

+45
-17
lines changed

3 files changed

+45
-17
lines changed

docs/sources/backwards.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# List of backwards compatibility fixes
2+
3+
As NGLess uses a version declaration string at the top of script means that
4+
NGLess can change its behaviour depending on the version used in the script.
5+
6+
## < NGLess 1.1
7+
8+
- The way that CIGAR sequence lengths are computed has changed to match
9+
samtools. This implies that the computation of `min_match_size` and
10+
`min_identity_pc` have slightly changed.
11+
12+
## < NGLess 0.8
13+
14+
- Select changes how a corner case is handled.
15+
16+
## < NGLess 0.6
17+
18+
- The `count` function now defaults to `include_minus1` being true.
19+
20+
## < NGLess 0.5
21+
22+
- The `preprocess` function now modifies its argument. Older code using
23+
24+
```python
25+
preprocess(input) using |r|:
26+
...
27+
```
28+
is automatically treated as:
29+
30+
31+
```python
32+
input = preprocess(input) using |r|:
33+
...
34+
```
35+

docs/sources/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
master_doc = 'index'
4646

4747
# General information about the project.
48-
project = u'ngless'
49-
copyright = u'2013-2018, NGLess Authors'
48+
project = u'NGLess'
49+
copyright = u'2013-2019, NGLess Authors'
5050

5151
# The version info for the project you're documenting, acts as replacement for
5252
# |version| and |release|, also used in various other places throughout the
@@ -234,7 +234,7 @@
234234
# One entry per manual page. List of tuples
235235
# (source start file, name, description, authors, manual section).
236236
man_pages = [
237-
('index', 'ngless', u'ngless Documentation',
237+
('index', 'NGLess', u'NGLess Documentation',
238238
[u'NGLess Authors'], 1)
239239
]
240240

@@ -248,8 +248,8 @@
248248
# (source start file, target name, title, author,
249249
# dir menu entry, description, category)
250250
texinfo_documents = [
251-
('index', 'ngless', u'ngless Documentation',
252-
u'NGLess Authors', 'ngless', 'One line description of project.',
251+
('index', 'NGLess', u'NGLess Documentation',
252+
u'NGLess Authors', 'NGLess', 'One line description of project.',
253253
'Miscellaneous'),
254254
]
255255

docs/sources/index.rst

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ For questions, you can also use the `ngless mailing list
1818
Microbiome 2019 7:84;
1919
`https://doi.org/10.1186/s40168-019-0684-8 <https://doi.org/10.1186/s40168-019-0684-8>`__
2020

21-
previously also available as a pre-print at:
22-
23-
*NG-meta-profiler: fast processing of metagenomes using NGLess, a
24-
domain-specific language* by Luis Pedro Coelho, Renato Alves, Paulo
25-
Monteiro, Jaime Huerta-Cepas, Ana Teresa Freitas, Peer Bork -
26-
bioRxiv 367755;
27-
`https://doi.org/10.1101/367755 <https://doi.org/10.1101/367755>`__
28-
2921

3022
NG-meta-profiler
3123
----------------
@@ -39,7 +31,7 @@ NGLess
3931

4032
NGLess is best illustrated by an example::
4133

42-
ngless "0.11"
34+
ngless "1.0"
4335
input = paired('ctrl1.fq', 'ctrl2.fq', singles='ctrl-singles.fq')
4436
input = preprocess(input) using |read|:
4537
read = read[5:]
@@ -112,7 +104,7 @@ This is equivalent to the full script:
112104

113105
::
114106

115-
ngless "0.11" # <- version declaration, optional on the command line
107+
ngless "1.0" # <- version declaration, optional on the command line
116108
samcontents = samfile("file.sam") # <- load a SAM/BAM file
117109
reads = as_reads(samcontents) # <- just get the reads (w quality scores)
118110
write(reads, ofname=STDOUT) # <- write them to STDOUT (default format: FASTQ)
@@ -122,7 +114,7 @@ out a single FQ file. Otherwise, you can always do:
122114

123115
::
124116

125-
ngless "0.11"
117+
ngless "1.0"
126118
write(as_read(samfile("file.sam")),
127119
ofile="output.fq")
128120

@@ -144,7 +136,7 @@ This is equivalent to the full script:
144136

145137
::
146138

147-
ngless "0.11" # <- version declaration, optional on the command line
139+
ngless "1.0" # <- version declaration, optional on the command line
148140
samcontents = samfile("file.sam") # <- load a SAM/BAM file
149141
samcontents = select(samcontents, keep_if=[{mapped}]) # <- select only *mapped* reads
150142
reads = as_reads(samcontents) # <- just get the reads (w quality scores)
@@ -188,6 +180,7 @@ Authors
188180
install
189181
ng-meta-profiler
190182
whatsnew
183+
backwards
191184
tutorial-ocean-metagenomics
192185
tutorial-assembly-gp
193186
tutorial-gut-metagenomics

0 commit comments

Comments
 (0)