-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
222 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
class Input: | ||
def __init__(self, input_arg): | ||
self.arg = input_arg | ||
def is_fasta(input_fasta): | ||
if input_fasta: | ||
return input_fasta.endswith(".fasta") | ||
else: | ||
return False | ||
|
||
def is_fasta(self): | ||
return self.arg.endswith(".fasta") | ||
|
||
def is_pdb(self): | ||
return self.arg.endswith(".pdb") | ||
def is_pdb(input_pdb): | ||
if input_pdb: | ||
return input_pdb.endswith(".pdb") | ||
else: | ||
return False | ||
|
||
def is_uniprot(self): | ||
return len(self.arg.split(".")) == 1 | ||
|
||
def is_uniprot(input_uniprot): | ||
if input_uniprot: | ||
return len(input_uniprot.split(".")) == 1 | ||
else: | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.