Skip to content

Commit 945fd2f

Browse files
authored
Merge pull request #18 from 4dn-dcic/dev
Dev
2 parents 1e5be1a + 21f74aa commit 945fd2f

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Rpairix
22
Title: Rpairix
3-
Version: 0.1.2
3+
Version: 0.1.3
44
Authors@R: person("Soo", "Lee", email = "duplexa@gmail.com", role = c("aut", "cre"))
55
Description: R binder for pairix, tool for querying a pair of genomic ranges in a pairs file (pairix-indexed bgzipped text file)
66
Depends:

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ R --no-site-file --no-environ --no-save --no-restore CMD INSTALL --install-tests
5151
To install a specific version,
5252
```r
5353
library(devtools)
54-
install_url("https://github.com/4dn-dcic/Rpairix/archive/0.1.2.zip")
54+
install_url("https://github.com/4dn-dcic/Rpairix/archive/0.1.3.zip")
5555
```
5656

5757

@@ -272,6 +272,9 @@ Individual R functions are written and documented in `R/`. The `src/rpairixlib.c
272272
***
273273

274274
## Version history
275+
### 0.1.3
276+
* `px_query`: fixed a new problem (since 0.1.2) with multi-query returning only the last query result.
277+
275278
### 0.1.2
276279
* Function `px_get_column_names` is now added.
277280
* `px_query` now adds column names for the query result if indexing was done with `pairs` preset.

Rpairix.Rproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version: 0.1.2
1+
Version: 0.1.3
22

33
RestoreWorkspace: No
44
SaveWorkspace: No

src/rpairixlib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,11 @@ SEXP get_lines(SEXP _r_pfn, SEXP _r_pquerystr, SEXP _r_pnquery, SEXP _r_pn){
296296
SEXP _r_presultstr_line[*pn];
297297
if(tb){
298298
const ti_conf_t *pconf = ti_get_conf(tb->idx);
299-
int i, ires=0; // i is index for querystr, ires is index for result line
299+
int i, ires=0, k=0; // i is index for querystr, ires is index for result line
300300
for(i=0;i<*pnquery;i++){
301301
ti_iter_t iter = ti_querys_2d(tb, pquerystr[i]);
302302
char *s;
303-
int len=-1,k=0;
303+
int len=-1;
304304
while ((s = ti_read(tb, iter, &len)) != 0) {
305305
int j,start=0,m=0; // j is position on result line, start is start position of the current column, m is the index of the current column
306306
if(ncols==0) for(j=0;j<=len;j++) if(s[j]==pconf->delimiter||s[j]==0) ncols++;

0 commit comments

Comments
 (0)