Skip to content

Instantly share code, notes, and snippets.

# grab a feature
if ($sf->has_tag('foo')) {
my @old = $sf->remove_tag('foo');
# modify or add new
$sf->add_tag_value('foo', $new);
}
1..34
ok 1 - use Bio::SeqFeature::Generic;
ok 2 - use Bio::SeqFeature::Annotated;
--------------------- WARNING ---------------------
MSG: [1/5] tried to fetch http://song.cvs.sourceforge.net/*checkout*/song/ontology/so.obo?rev=HEAD, but server threw 404. retrying...
---------------------------------------------------
--------------------- WARNING ---------------------
@cjfields
cjfields / gist:776368
Created January 12, 2011 16:16
latest bamtools fail
cjfields@pyrimidine:~/src/bamtools/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
@cjfields
cjfields / samtools idxstats
Created November 15, 2010 17:40
Output of 'samtools idxstats' against one of our local BAM files
Group10 12642577 553507 0
Group11 14521977 687845 0
Group1 29934090 1123268 0
Group12 11309010 438679 0
Group13 10266737 389981 0
Group14 9976661 436939 0
Group15 10159687 569461 0
Group16 7072872 237769 0
Group2 16072177 1518762 0
Group3 13621520 658251 0
[GENERAL]
description = BLASTZ alignments for Oryza sativa
# The synteny database
join = dbi:mysql:database=rice_synteny;host=localhost;user=nobody
# This option maps the relationship between the species data sources, names and descriptions
# The value for "name" (the first column) is the symbolic name that gbrowse_syn users to identify each species.
# This value is also used in two other places in the gbrowse_syn configuration:
# the species name in the "examples" directive and the species name in the .aln file
#!/usr/bin/perl
use strict;
use warnings;
use Bio::DB::EUtilities;
use Bio::SeqIO;
use Bio::Seq::SeqBuilder;
cjfields@pyrimidine:~/tests/perl6$ cat lives_ok.pl
use v6;
use Test;
lives_ok { warn('Foo') };
done_testing;
cjfields@pyrimidine:~/tests/perl6$ perl6 lives_ok.pl
not ok 1 -
1..1
# Looks like you failed 1 tests of 1
$VAR1 = bless( {
'_secondary_ids' => [],
'_dblinks' => {
'_default' => [
bless( {
'database' => 'MetaCyc',
'primary_id' => 'PWY-681',
'_root_verbose' => 0
}, 'Bio::Annotation::DBLink' ),
bless( {
$VAR1 = bless( {
'_secondary_ids' => [],
'_dblinks' => {},
'short_name' => undef,
'_ontology' => bless( {
'engine' => bless( {
'_relationship_type_store' => {
'InterPro|IS_A' => bless( {
'_secondary_ids' => [],
'_dblinks' => {},
ID AQP1_HUMAN Reviewed; 269 AA.
AC P29972; B5BU39; Q8TBI5; Q8TDC1;
DT 01-APR-1993, integrated into UniProtKB/Swiss-Prot.
DT 23-JAN-2007, sequence version 3.
DT 18-MAY-2010, entry version 122.
DE RecName: Full=Aquaporin-1;
DE Short=AQP-1;
DE AltName: Full=Aquaporin-CHIP;
DE AltName: Full=Water channel protein for red blood cells and kidney proximal tubule;
DE AltName: Full=Urine water channel;