Author Archives: Andrea Telatin

A small game: guess what this script does

Below you’ll find a script.
Guess what’s the purpouse of the program… and if you like it give him a try.
Write me your guess at . I’ll post both the solution and a test on the ouput produced on Mar 25th.

Continue reading

pickprimers.pl: first part

After the break I copied the program we wrote today in class…
Remember that it
1) Takes parameters from the user
2) Parse the multifasta file with contigs saving to $seq1 and $seq2 the sequence of desired contigs

Continue reading

Third computer lab

Lesson

We start with a brief class lesson to view how to access the visual interface of Contig Browser (see video) and  start coding the pickprimers.pl program.
You can browse the contigs from the platform http://www.4ngs.com/alga_v1/ using your log-in as username and your UPPERCASE (without spaces) surname as password.

Get your gaps

In this list we have our mission: the gaps to close. You’ll see lines starting with # with four columns: the username assigned to the gap (e.g. geno-20), the PCR identifier (e.g. PCR22) and the two contigs to join. Following lines tell you the mutual orientation of the contigs as follows.

These are complex regions and rather than being side-to-side gaps they have (small) contigs between them.  Let’s see this example: contig02430 to contig01619. If you browse from one contig to the other you obtain:

In our jargon we say that contig00068 is uncomplemented (U) while the others are complemented (C). So the PCR has to be designed between contig00068U and contig00122C. Note that three contigs have no direct link,

Primer3: make it running

Review last lab and try the Primer3 part. I saved the pickprimers.pl program we made in class in /home/geno/tools/pickprimers.pl. Copy it to your home so that you’ll edit your own version, with this command:

cp /home/geno/tools/pickprimers.pl ~

Now consider a program that receive from the user four parameters: contig1, direction1, contig2, direction2.
Example:

pickprimers.pl contig00068 U contig00122 C

The program is able to give you access to both sequences (we did it togegher) so you have in $seq1 the first and in $seq2 the second.
Now arrange the program so that it will print the proper Primer3 file.

Now:

1) Create a $template variable with the right template

2) Optionally print a Primer3 compliant instruction

 

 

Tomorrow

Dear guys, I’d like to start our practical at 14.15 with a brief lesson in Piano Rialzato. When I’ll have the room booked I’ll update you… Keep in touch.
Bring paper and pencil! 🙂 Update: Aula A pr

Load a multifasta file

Today’s task is quite complex, instead of parsing a file that keeps all information we need in a single line, as we did for BLAST. Instead a multifasta has a variable number of lines per item (sequence). This example is hard, that’s why I publish it now so that you can study it!

Let’s consider the following file (called minimultifasta.fna):
Continue reading

Tagged

Parse BLAST output (tabular format)

We performed a BLAST aligment using the -m 8 parameters, that produces a tabular format.
Let’s review how to parse it with Perl.

Continue reading

Tagged

Solutions to some Perl scripts

Here I post some scripts, with comments: minimum and maximum, reverse complement a sequence and reverse and complement a sequence stored into a file.

Continue reading

Tagged , ,

Second computer lab

After the brief introduction in class you are now ready to try by yourself a couple of command line programs: BLAST and Primer3. After having worked with these tools, you’ll have some more time to play with Perl. Today we will

  • Practice again with the shell
  • Perform a BLAST via command line
  • Perl scripts
  • Primer3 test

Now our servers are set up and we can monitor your activity… so remember: read carefully, and type filenames exactly as we suggest.

Continue reading

Tagged , ,

Browse the Linux filesystem

If you want to refer to a directory in UNIX (and, with little differences, in Windows too) you can use:

  • Relative path
  • Absolute path

Continue reading

Tagged , , , , ,

Lab change: important

Tomorrow we have the second  laboratory.

We will meet in aula B / Piano Rialzato at 14.30 and after a small demonstration we’ll reach together the Computer Room.

Please spread the message!