hello all , i have data around 500000 seq of a plant and i wanna fetch some 37000 seq from my database ,but what i have is the name of query seq is there any perl program to perform this task ,as i am very new in field of computational genomics and biology.plz help me
Unconfigured Ad
Collapse
X
-
Could you exactly tell us what kind of data you have in your database?
What columns are populated?
If you have the names of the 37000 sequences you would like to extract, you can query the database (assuming its a generic SQL database) quite easily.
Please provide a bit more info.
-
If you have your names of the query sequences in a newline delimited txt file something like the following might help:
Hope it helps. Otherwise you should provide more info.Code:#!/usr/bin/perl -w use DBI; use strict; use warnings; my $dbh = DBI->connect('dbi:mysql:perltest','root','password') or die "Connection Error: $DBI::errstr\n"; my $sql; while(<>){ my $seq_name = chomp($_); $sql = "select seqColName from tableName where queryName='$seq_name'"; $sth = $dbh->prepare($sql); $sth->execute or die "SQL Error: $DBI::errstr\n"; print "Query Name: \t Sequence:"; while (my @row = $sth->fetchrow_array) { print "$seq_name\t$row[0]\n"; } }
Comment
-
well, i have large amount of fasta seq in my database, and i want to retrieve around 37000 seq of my interest from it , as i am a fresher in bioinformatics and genomics , i have very little idea to do this task using perl coding , that why i really want a perl code who can perform this task.
And that's why i need ur help
Comment
-
Well I can give you the answer without a problem. But its important to learn from it yourself too! Especially in the world of bioinformatics.
Could you layout what your database structure is like? On the command line login to your Mysql database and then type:
DESCRIBE name_of_table_with_fasta_seqs;
Whats the structure like, what database are you running? What OS are you running?
All kind of relevant here.
Comment
-
Latest Articles
Collapse
-
by SEQadmin2
CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).
Despite this, “CRISPR helped turn genome editing from a specialized technique into...-
Channel: Articles
07-31-2026, 11:01 AM -
-
by SEQadmin2
Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.
The systematic characterization of the human proteome has...-
Channel: Articles
07-20-2026, 11:48 AM -
-
by SEQadmin2
Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
...-
Channel: Articles
07-09-2026, 11:10 AM -
ad_right_rmr
Collapse
News
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SEQadmin2, 07-31-2026, 02:55 AM
|
0 responses
17 views
0 reactions
|
Last Post
by SEQadmin2
07-31-2026, 02:55 AM
|
||
|
Started by SEQadmin2, 07-24-2026, 12:17 PM
|
0 responses
15 views
0 reactions
|
Last Post
by SEQadmin2
07-24-2026, 12:17 PM
|
||
|
Started by SEQadmin2, 07-23-2026, 11:41 AM
|
0 responses
13 views
0 reactions
|
Last Post
by SEQadmin2
07-23-2026, 11:41 AM
|
||
|
Started by SEQadmin2, 07-20-2026, 11:10 AM
|
0 responses
24 views
0 reactions
|
Last Post
by SEQadmin2
07-20-2026, 11:10 AM
|
Comment