File: 08_DB_LocalTRANSFAC.t

package info (click to toggle)
libtfbs-perl 0.7.1%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,992 kB
  • sloc: perl: 10,728; ansic: 1,228; makefile: 560; sh: 9
file content (38 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env perl  -w

use strict;
use Bio::SeqIO;
use TFBS::DB::LocalTRANSFAC;

use Test;
plan(tests => 6);

my $seq = Bio::SeqIO->new(-file=>'t/test.fa')->next_seq;
my $db = TFBS::DB::LocalTRANSFAC->connect(-accept_conditions=>1,
					  -localdir=>'t/transfac_old');
ok(("TFBS::DB::LocalTRANSFAC" eq ref($db)),1);

my $pwm = $db->get_Matrix_by_ID('V$CEBPA_01','PWM');

ok($pwm->length,14);

my $siteset = $pwm->search_seq(-seqobj=>$seq, -threshold=>"80%");
#print $siteset->GFF(), 

ok($siteset->size,31);

$db = TFBS::DB::LocalTRANSFAC->connect(-accept_conditions=>1,
					  -localdir=>'t/transfac_new');

ok(("TFBS::DB::LocalTRANSFAC" eq ref($db)),1);


$pwm = $db->get_Matrix_by_ID('V$MYOD_01','PWM');

ok($pwm->length,12);

$siteset = $pwm->search_seq(-seqobj=>$seq, -threshold=>"80%");
print $siteset->GFF(), 

ok($siteset->size,22);