Make a program that reads a list of strings from a file, one string per line, and then lets the user interactively enter patterns that may match some of the strings. For each pattern, the program should tell how many strings from the file matched, then which ones those were. Don't re-read the file for each new pattern; keep the strings in memory. The filename may be hard-coded in the file. If a pattern is invalid (for example, if it has unmatched parentheses), the program should simply report that error and let the user continue trying patterns. When the user enters a blank line instead of a pattern, the program should quit.
Teja
Monday, July 20, 2009
PERL PROBLEM 8 (EASY)
HI,
HERE IS PERL PROBLEM 8
write a program to generate 'n' random dna strings between length 'a' and 'b'. The values of 'n', 'a','b' has to be input from command line.
Example:
2
5
7
AGTCTC
ACCCTGC
HERE IS PERL PROBLEM 8
write a program to generate 'n' random dna strings between length 'a' and 'b'. The values of 'n', 'a','b' has to be input from command line.
Example:
2
5
7
AGTCTC
ACCCTGC
Monday, July 6, 2009
No problems this week!
Hey everyone,
Sorry there wont be any problems this week. I will posting problems next monday.
Thankyou
Teja
Sorry there wont be any problems this week. I will posting problems next monday.
Thankyou
Teja
Wednesday, June 17, 2009
Computer scientists develop model for studying arrangements of tissue networks by cell division
Computer scientists develop model for studying arrangements of tissue networks by cell division Could lead to insights about how multicellular systems achieve robustness from seemingly random behavior
Cambridge, Mass. – June 17, 2009 – Computer scientists at Harvard have developed a framework for studying the arrangement of tissue networks created by cell division across a diverse set of organisms, including fruit flies, tadpoles, and plants.
The finding, published in the June 2009 issue of PLoS Computational Biology, could lead to insights about how multicellular systems achieve (or fail to achieve) robustness from the seemingly random behavior of groups of cells and provide a roadmap for researchers seeking to artificially emulate complex biological behavior.
"We developed a model that allows us to study the topologies of tissues, or how cells connect to each other, and understand how that connectivity network is created through generations of cell division," says senior author Radhika Nagpal, Assistant Professor of Computer Science at the Harvard School of Engineering and Applied Sciences (SEAS) and a core faculty member of the Wyss Institute for Biologically Inspired Engineering. "Given a cell division strategy, even if cells divide at random, very predictable 'signature' features emerge at the tissue level."
Using their computational model, Nagpal and her collaborators demonstrated that the regularity of the tissue, such as the percentage of hexagons and the overall cell shape distribution, can act as an indicator for inferring properties about the cell division mechanism itself. In the epithelial tissues of growing organisms, from fruit flies to humans, the ability to cope with often unpredictable variations (referred to as robustness) is critical for normal development. Rapid growth, entailing large amounts of cell division, must be balanced with the proper regulation of overall tissue and organ architecture.
"Even with modern imaging methods, we can rarely directly 'ask' the cell how it decided upon which way to divide. The computational tool allows us to generate and eliminate hypotheses about cell division. Looking at the final assembled tissue gives us a clue about what assembly process was used," explains Nagpal.
The model also sheds light on a prior discovery made by the team: that many proliferating epithelia, from plants to frogs, show a nearly identical cell shape distribution. While the reasons are not clear, the authors suggest that the high regularity observed in nature requires a strong correlation between how neighboring cells divide. While plants and fruit flies, for example, seem to have conserved cell shape distributions, the two organisms have, based on the computational and experimental evidence, evolved distinct ways of achieving such a pattern.
"Ultimately, the work offers a beautiful example of the way biological development can take advantage of very local and often random processes to create large-scale robust systems. Cells react to local context but still create organisms with incredible global predictability," says Nagpal.
In the future, the team plans to use their approach to detect and study various mutations that adversely affect cell division process in epithelial tissues. Epithelial tissues are common throughout animals and form important structures in humans from skin to the inner lining of organs. Deviations from normal division can result in abnormal growth during early development and to the formation of cancers in adults.
"One day we may even be able to use our model to help researchers understand other kinds of natural cellular networks, from tissues to geological crack formations, and, by taking inspiration from biology, design more robust computer networks," adds Nagpal.
###
Nagpal's collaborators included Ankit B. Patel and William T. Gibson, both at Harvard, and Dr. Matthew C. Gibson at Stower's Institute.
Cambridge, Mass. – June 17, 2009 – Computer scientists at Harvard have developed a framework for studying the arrangement of tissue networks created by cell division across a diverse set of organisms, including fruit flies, tadpoles, and plants.
The finding, published in the June 2009 issue of PLoS Computational Biology, could lead to insights about how multicellular systems achieve (or fail to achieve) robustness from the seemingly random behavior of groups of cells and provide a roadmap for researchers seeking to artificially emulate complex biological behavior.
"We developed a model that allows us to study the topologies of tissues, or how cells connect to each other, and understand how that connectivity network is created through generations of cell division," says senior author Radhika Nagpal, Assistant Professor of Computer Science at the Harvard School of Engineering and Applied Sciences (SEAS) and a core faculty member of the Wyss Institute for Biologically Inspired Engineering. "Given a cell division strategy, even if cells divide at random, very predictable 'signature' features emerge at the tissue level."
Using their computational model, Nagpal and her collaborators demonstrated that the regularity of the tissue, such as the percentage of hexagons and the overall cell shape distribution, can act as an indicator for inferring properties about the cell division mechanism itself. In the epithelial tissues of growing organisms, from fruit flies to humans, the ability to cope with often unpredictable variations (referred to as robustness) is critical for normal development. Rapid growth, entailing large amounts of cell division, must be balanced with the proper regulation of overall tissue and organ architecture.
"Even with modern imaging methods, we can rarely directly 'ask' the cell how it decided upon which way to divide. The computational tool allows us to generate and eliminate hypotheses about cell division. Looking at the final assembled tissue gives us a clue about what assembly process was used," explains Nagpal.
The model also sheds light on a prior discovery made by the team: that many proliferating epithelia, from plants to frogs, show a nearly identical cell shape distribution. While the reasons are not clear, the authors suggest that the high regularity observed in nature requires a strong correlation between how neighboring cells divide. While plants and fruit flies, for example, seem to have conserved cell shape distributions, the two organisms have, based on the computational and experimental evidence, evolved distinct ways of achieving such a pattern.
"Ultimately, the work offers a beautiful example of the way biological development can take advantage of very local and often random processes to create large-scale robust systems. Cells react to local context but still create organisms with incredible global predictability," says Nagpal.
In the future, the team plans to use their approach to detect and study various mutations that adversely affect cell division process in epithelial tissues. Epithelial tissues are common throughout animals and form important structures in humans from skin to the inner lining of organs. Deviations from normal division can result in abnormal growth during early development and to the formation of cancers in adults.
"One day we may even be able to use our model to help researchers understand other kinds of natural cellular networks, from tissues to geological crack formations, and, by taking inspiration from biology, design more robust computer networks," adds Nagpal.
###
Nagpal's collaborators included Ankit B. Patel and William T. Gibson, both at Harvard, and Dr. Matthew C. Gibson at Stower's Institute.
SOLUTION TO PERL PROBLEM 5 (HARD)
HERE IS THE SOLUTION FOR PERL PROBLEM 5
#!usr/bin/perl -w
use DBI;
chomp($keyword=<>);
$dbh=DBI->connect("DBI:mysql:host=localhost;database=test","root","password");
$query="select * from table1 where keyword like '%$keyword%'";
$sth=$dbh->prepare($query);
$sth->execute();
while(@result=$sth->fetchrow_array()){
print "@result";
print "\n";
}
$dbh->disconnect();
Please post any doubts.
Thankyou
Teja
#!usr/bin/perl -w
use DBI;
chomp($keyword=<>);
$dbh=DBI->connect("DBI:mysql:host=localhost;database=test","root","password");
$query="select * from table1 where keyword like '%$keyword%'";
$sth=$dbh->prepare($query);
$sth->execute();
while(@result=$sth->fetchrow_array()){
print "@result";
print "\n";
}
$dbh->disconnect();
Please post any doubts.
Thankyou
Teja
PERL PROBLEM 7 (HARD)
Make a pattern that matches any line of input that has the same word repeated two or more times in a row. Words in this problem can be considered to be sequences of letters a to z or A to Z, digits, and underscores. Whitespace between words may differ. For example, the classic observation-test string Paris in the the spring should match, since it has a doubled word. Also, I thought that that was the problem should match, even though that may be a correct use of a doubled word. Does your pattern match all three words in I thought that that that was the problem (with extra spaces between only some of the words)? Does it match This is a test? How about This shouldn't match, according to the theory of regular expressions?
(FROM LEARNING PERL)
Thankyou
Teja
(FROM LEARNING PERL)
Thankyou
Teja
PERL PROBLEM 6 ( EASY)
Hi everyone,
Here is this week's easy perl problem
Write a program which opens up a BLAST output file and spits out the name of the query sequence, the top hit, and how many hits there were.
Thankyou
Teja
Here is this week's easy perl problem
Write a program which opens up a BLAST output file and spits out the name of the query sequence, the top hit, and how many hits there were.
Thankyou
Teja
Subscribe to:
Posts (Atom)
