Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 02e8c96

Browse files
authored
Merge pull request #9 from trstickland/tweak_config_for_farm4
Tweak config for farm4
2 parents 33a735e + 1d2ac5e commit 02e8c96

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

gffmunger-config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ annotated_feature_types :
4040
only_transfer_anot_to_mRNA : False
4141

4242
# For use of genometools to validate GFF3 input.
43-
# gt_path : '/usr/bin/gt'
44-
gt_path : '/software/pathogen/external/apps/usr/local/genometools-1.5.9/bin/gt'
43+
gt_path : '/usr/bin/gt'
4544
gff3_validator_tool : 'gff3validator'
4645
gff3_validation_timeout : 60
4746

4847
# Working filenames; shouldn't need to edit these unless their location offends.
4948
# A UUID is substituted for <uid> to avoid clashes if there are concurrent gffmunder processes.
50-
gffutils_db_filename : 'gffutils.<uid>.db'
49+
gffutils_db_filename : '/tmp/gffutils.<uid>.db'
5150
temp_input_file : '/tmp/gffmunger_input.<uid>.gff3'
5251

5352
# Causes features in the input GFF3 to be read into a read_features_to_buffer.

gffmunger/tests/gff_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import unittest
22
import os
33
import gffutils
4+
import uuid
45
import warnings
56

67
from gffmunger.GFFMunger import GFFMunger
@@ -9,7 +10,7 @@
910
data_dir = os.path.join( test_modules_dir, 'data' )
1011
test_gff_file = os.path.join( data_dir, 'SMALL_SAMPLE.gff3.gz' ) # must be valid GFF3 with *no* FASTA
1112
test_gff_and_fasta_file = os.path.join( data_dir, 'SMALL_SAMPLE_INCL_FASTA.gff3.gz' ) # must be valid GFF3 with FASTA
12-
test_gff_db_file = os.path.join( data_dir, 'gffutils_test.db' )
13+
test_gff_db_file = '/tmp/gffutils_test.<uid>.db'
1314

1415
#sample_gff_gene_id = 'PF3D7_0100100' # use with SAMPLE.gff3
1516
sample_gff_gene_id = '13J3.01' # use with SMALL_SAMPLE.gff3
@@ -31,7 +32,7 @@ def setUpClass(self):
3132
warnings.filterwarnings("ignore", "generator '_FileIterator\.", PendingDeprecationWarning, "gffutils", 186 )
3233
warnings.filterwarnings("ignore", "unclosed file <_io\.TextIOWrapper", ResourceWarning, "gffutils", 668 )
3334
self.test_gff_db = gffutils.create_db( test_gff_file,
34-
dbfn = test_gff_db_file,
35+
dbfn = str(test_gff_db_file).replace('<uid>',uuid.uuid4().hex),
3536
force = True, # overwrite previous testing db file
3637
merge_strategy = 'error',
3738
keep_order = False, # True doesn't appear to maintain attribute order :-/ (and turning this off may be faster)

gffmunger/tests/io_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def test_020_gff3_i0(self):
7272
self.assertEqual(expected_num_metadata_lines, newmunger.extract_GFF3_components())
7373
self.assertEqual(expected_num_metadata_lines, newmunger.extract_GFF3_components(test_gff_no_fasta))
7474
with warnings.catch_warnings():
75-
warnings.filterwarnings("ignore", "unclosed file", ResourceWarning, "gffutils", 0 )
75+
warnings.filterwarnings("ignore", "unclosed file <_io\.FileIO", ResourceWarning, "six", 581 )
76+
warnings.filterwarnings("ignore", "", ResourceWarning, "gffutils", 0 )
7677
self.assertIsInstance(newmunger.import_fasta(), pyfaidx.Fasta)
7778
self.assertIsInstance(newmunger.import_fasta(test_fasta_file), pyfaidx.Fasta)
7879
try:

0 commit comments

Comments
 (0)