Test

From GMOD

Jump to: navigation, search

This page is a sandbox for anyone to experiment with MediaWiki syntax and extensions. You can try things here before trying them on the page you actually want to use them on.

If you edit this page, please flag the edit as a Minor edit. If you don't do this, then the page will show up in the New & Revised Pages list on the home page. This page is not interesting enough to justify that.


Above TOC

An example table

MediaWiki:Mainpage

Contents

Five

#Three

#Four

 
sub check_names {
   my $self = shift;
 
   my $tree = $self->tree;
   my $aln  = $self->alignment;
   if( ! $aln ) {
       $self->warn("must have supplied a valid alignment file in order to run njtree_best");
       return 0;
   }
   if( ! $tree ) {
       $self->warn("must have supplied a valid species tree file in order to run njtree_best");
       return 0;
   }
   foreach my $leaf ($tree->get_leaf_nodes) {
       my $id = $leaf->id;
       $id =~ s/\-\*.+//; # njtree does not consider anything after a \-\*
       $self->{_treeids}{$id} = 1;
   }
   foreach my $seq ($aln->each_seq) {
       my $id = $seq->id;
       $id =~ s/.+\_//; # njtree only looks at the right side of the \_
       $self->{_alnids}{$id} = 1;
   }
   foreach my $alnid (keys %{$self->{_alnids}}) {
       $self->{_unmappedids}{$alnid} = 1 unless (defined($self->{_treeids}{$alnid}));
   }
   if (defined($self->{_unmappedids})) {
       my $count = scalar(keys%{$self->{_unmappedids}});
       my $unmapped = join(",",keys %{$self->{_unmappedids}});
       $self->warn("$count unmapped ids between the aln and the tree $unmapped");
   }
}
 


Text

Three

dfjlgh

Four

ldufg

Two

ldjfhg

One

 
try {
 sqlMap.startTransaction();
 pGene.id =featureDAO.insert(pGene.getFeatureWithBLOBs());
 featurepropDAO.insert(pGene.getPropertyDescription());
 pGene.featurelocId = featurelocDAO.insert(pGene
                                  .getFeaturelocWithBLOBS());
 pGene = insertExons(pGene);
 insertSynonyms(pGene);
 sqlMap.commitTransaction();
} catch (Exception e) {
       System.out.println(e);
       throw (e);
} finally {
      sqlMap.endTransaction();
}
 


Test reference [1]

  1. Osborne BI & Guarente L (1989) Mutational analysis of a yeast transcriptional terminator. Proc Natl Acad Sci U S A 86: 4097-101 PubMed

References

Retrieved from "http://gmod.org/wiki/Test"
Personal tools
Developers