Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a class/module method to read in a .dict file to a SequenceDictionary #176

Open
nh13 opened this issue Aug 12, 2024 · 0 comments · May be fixed by #183
Open

Add a class/module method to read in a .dict file to a SequenceDictionary #176

nh13 opened this issue Aug 12, 2024 · 0 comments · May be fixed by #183
Assignees
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@nh13
Copy link
Member

nh13 commented Aug 12, 2024

def read_seq_dict(path: Path) -> SequenceDictionary:
    with fgpyo.sam.reader(path, file_type=sam.SamFileType.SAM) as fh:
        seq_dict: SequenceDictionary = SequenceDictionary.from_sam(header=fh.header)
        return seq_dict
@nh13 nh13 added good first issue Good for newcomers help wanted Extra attention is needed labels Aug 12, 2024
@TimD1 TimD1 self-assigned this Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants