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

check if the type of the input is in SequenceType database or not #270

Open
deming7h777 opened this issue Apr 1, 2019 · 2 comments
Open
Assignees

Comments

@deming7h777
Copy link
Contributor

There are another name for molecule_type : ('nucl',Nucleotide'), ('prot','Peptide')
need to identify the input to these two type

@deming7h777 deming7h777 self-assigned this Apr 1, 2019
@deming7h777
Copy link
Contributor Author

deming7h777 commented Apr 1, 2019

class BlastDb(models.Model):
    objects = BlastDbManager()
    organism = models.ForeignKey(app.models.Organism)
    type = models.ForeignKey(SequenceType)
    # fasta_file = models.FileField(upload_to='blastdb') # upload file
    fasta_file = FileBrowseField('FASTA file path', max_length=200, directory='blast/db/', extensions='FASTA', format='FASTA')
    title = models.CharField(max_length=200, unique=True, help_text='This is passed into makeblast -title') # makeblastdb -title
    description = models.TextField(blank=True)  # shown in blast db selection ui
    is_shown = models.BooleanField(default=None, help_text='Display this database in the BLAST submit form') # to temporarily remove from blast db selection ui
    # sequence_count = models.PositiveIntegerField(null=True, blank=True)  # number of sequences in this fasta

In the progress of going through the BlastDb script I found out that one of the field 'type' in our model did not name correctly, it was the key word reserved by python itself.

@hsiaoyi0504
Copy link
Member

hsiaoyi0504 commented Apr 25, 2019

@deming7h777 Can you explain more about this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants