Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions needletail.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from pathlib import Path
from typing import Iterator, Union
from typing import Iterator, Optional, Union

class FastxReader(Iterator[Record]):
"""An iterator that yields sequence records.
"""
An iterator that yields sequence records.

Yields
------
Expand Down Expand Up @@ -59,6 +60,11 @@ class Record:
normalize(iupac)
Normalize the sequence stored in the `seq` attribute of the object.
"""

id: str
seq: str
qual: Optional[str]

def is_fasta(self) -> bool:
"""
Check if the object represents a FASTA record.
Expand Down
1 change: 1 addition & 0 deletions src/python.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! Python bindings for needletail

// TODO:
// - Enable reading FASTA and FASTQ files from stdin
// - The `normalize` method of the `Record` class should return a new `Record`
// object with the normalized sequence.
// - Add a `reverse_complement` method to the `Record` class that returns a new
Expand Down
Loading