Skip to content

Commit

Permalink
fixed fasta parser
Browse files Browse the repository at this point in the history
  • Loading branch information
lmdu committed Sep 19, 2023
1 parent 268ede0 commit ee24206
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyfastx==1.1.0
pyfastx==2.0.1
2 changes: 1 addition & 1 deletion src/atr.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static PyObject* pytrf_atr_repr(pytrf_ATR *self) {
}

static PyObject* pytrf_atr_as_list(pytrf_ATR *self) {
return Py_BuildValue("OnnOiiiiiif", self->seqid, self->start, self->end, self->motif, self->mlen,
return Py_BuildValue("OnnOiiiiiid", self->seqid, self->start, self->end, self->motif, self->mlen,
self->length, self->matches, self->substitutions, self->insertions,
self->deletions, self->identity);
}
Expand Down
6 changes: 3 additions & 3 deletions src/etr.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ typedef struct {
//tandem repeat element motif sequence
PyObject* motif;

//tandem repeat element motif length
int mlen;

//tandem repeat element start position
Py_ssize_t start;

//tandem repeat element stop position
Py_ssize_t end;

//tandem repeat element motif length
int mlen;

//number of tandem repeats
int repeats;

Expand Down
6 changes: 3 additions & 3 deletions src/gtr.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ typedef struct {
//input sequence object
PyObject *seqobj;

//pointer to sequence object
const char *seq;

//sequence length
Py_ssize_t size;

//next start position for tandem repeat identification
Py_ssize_t next_start;

//pointer to sequence object
const char *seq;

//max motif length
int max_motif;

Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define PYTRF_VERSION "1.1.0"
#define PYTRF_VERSION "1.1.1"

0 comments on commit ee24206

Please sign in to comment.