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

find_feature #185

Open
jakebeal opened this issue Oct 17, 2022 · 0 comments · May be fixed by #237
Open

find_feature #185

jakebeal opened this issue Oct 17, 2022 · 0 comments · May be fixed by #237
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jakebeal
Copy link
Contributor

In the SBOL tutorial, we use a loop for searching for a feature:

for f in i13504.features:
    if f.instance_of == b0015.identity:
        print(f)
        f.locations.append(Range(i13504_seq, 746, 875))

The search through features could be turned into a little macro routine, e.g., def find_feature(matching: Callable) -> sbol3.Feature

@jakebeal jakebeal added enhancement New feature or request good first issue Good for newcomers labels Oct 17, 2022
ahmedtarek26 added a commit to ahmedtarek26/SBOL-utilities that referenced this issue Feb 4, 2023
This function is to search for a feature in the sbol3 file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant