[BioRuby-cvs] bioruby/test/functional/bio/io test_ensembl.rb, 1.4, 1.5

Mitsuteru C. Nakao nakao at dev.open-bio.org
Sat Nov 10 16:57:45 UTC 2007


Update of /home/repository/bioruby/bioruby/test/functional/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv22657/test/functional/bio/io

Modified Files:
	test_ensembl.rb 
Log Message:
* Updated some expected values of test_gff_exportview*.


Index: test_ensembl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/functional/bio/io/test_ensembl.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_ensembl.rb	5 Apr 2007 23:35:42 -0000	1.4
--- test_ensembl.rb	10 Nov 2007 16:57:43 -0000	1.5
***************
*** 74,78 ****
  
     def test_gff_exportview
!      line = "chromosome:NCBI36:4:1149206:1149209:1\tEnsembl\tGene\t-839\t2747\t.\t+\t.\tgene_id=ENSG00000206158; transcript_id=ENST00000382964; exon_id=ENSE00001494097; gene_type=KNOWN_protein_coding\n"
       gff = @serv.exportview(4, 1149206, 1149209, ['gene'])
       assert_equal(line, gff)
--- 74,95 ----
  
     def test_gff_exportview
!      line = ["chromosome:NCBI36:4:1149206:1149209:1", 
!              "Ensembl", 
!              "Gene", 
!              "-839",
!              "2747", 
!              ".", 
!              "+",
!              ".",
!              "gene_id=ENSG00000206158; transcript_id=ENST00000382964; exon_id=ENSE00001494097; gene_type=KNOWN_protein_coding\n"].join("\t")  + "\n"
!      line = ["4", 
!              "Ensembl", 
!              "Gene", 
!              "1148366", 
!              "1151952", 
!              ".", 
!              "+", 
!              "1", 
!              "gene_id=ENSG00000206158; transcript_id=ENST00000382964; exon_id=ENSE00001494097; gene_type=KNOWN_protein_coding"].join("\t") + "\n"
       gff = @serv.exportview(4, 1149206, 1149209, ['gene'])
       assert_equal(line, gff)
***************
*** 80,84 ****
  
     def test_gff_exportview_with_named_args
!      line = "chromosome:NCBI36:4:1149206:1149209:1\tEnsembl\tGene\t-839\t2747\t.\t+\t.\tgene_id=ENSG00000206158; transcript_id=ENST00000382964; exon_id=ENSE00001494097; gene_type=KNOWN_protein_coding\n"
       gff = @serv.exportview(:seq_region_name => 4,
                              :anchor1 => 1149206,
--- 97,118 ----
  
     def test_gff_exportview_with_named_args
!      line = ["chromosome:NCBI36:4:1149206:1149209:1",
!              "Ensembl",
!              "Gene",
!              "-839",
!              "2747",
!              ".",
!              "+",
!              ".",
!              "gene_id=ENSG00000206158; transcript_id=ENST00000382964; exon_id=ENSE00001494097; gene_type=KNOWN_protein_coding"].join("\t") + "\n"
!      line = ["4", 
!              "Ensembl", 
!              "Gene", 
!              "1148366", 
!              "1151952", 
!              ".", 
!              "+", 
!              "1", 
!              "gene_id=ENSG00000206158; transcript_id=ENST00000382964; exon_id=ENSE00001494097; gene_type=KNOWN_protein_coding"].join("\t") + "\n"
       gff = @serv.exportview(:seq_region_name => 4,
                              :anchor1 => 1149206,
***************
*** 89,93 ****
  
     def test_tab_exportview_with_named_args
!      line = "seqname\tsource\tfeature\tstart\tend\tscore\tstrand\tframe\tgene_id\ttranscript_id\texon_id\tgene_type\nchromosome:NCBI36:4:1149206:1149209:1\tEnsembl\tGene\t-839\t2747\t.\t+\t.\tENSG00000206158\tENST00000382964\tENSE00001494097\tKNOWN_protein_coding\n"
       gff = @serv.exportview(:seq_region_name => 4,
                              :anchor1 => 1149206,
--- 123,176 ----
  
     def test_tab_exportview_with_named_args
!      line = [["seqname",
!              "source",
!              "feature",
!              "start",
!              "end",
!              "score",
!              "strand",
!              "frame",
!              "gene_id",
!              "transcript_id",
!              "exon_id",
!              "gene_type"].join("\t"),
!              ["chromosome:NCBI36:4:1149206:1149209:1",
!               "Ensembl",
!               "Gene",
!               "-839",
!               "2747",
!               ".",
!               "+",
!               ".",
!               "ENSG00000206158",
!               "ENST00000382964",
!               "ENSE00001494097",
!               "KNOWN_protein_coding"].join("\t") + "\n"
!      ].join("\n")
!      line = [["seqname",
!              "source",
!              "feature",
!              "start",
!              "end",
!              "score",
!              "strand",
!              "frame",
!              "gene_id",
!              "transcript_id",
!              "exon_id",
!              "gene_type"].join("\t"),
!              ["4",
!               "Ensembl",
!               "Gene",
!               "1148366",
!               "1151952",
!               ".",
!               "+",
!               "1",
!               "ENSG00000206158",
!               "ENST00000382964",
!               "ENSE00001494097",
!               "KNOWN_protein_coding"].join("\t") + "\n"
!      ].join("\n")
       gff = @serv.exportview(:seq_region_name => 4,
                              :anchor1 => 1149206,




More information about the bioruby-cvs mailing list