old_contents: __version__ = "$Rev: 10 $"
  import pkg_resources
  try:
      version = pkg_resources.require("sequana")[0].version
  except:
      version = __version__
  
  from easydev import CustomConfig
  configuration = CustomConfig("sequana", verbose=False)
  sequana_config_path = configuration.user_config_dir
  
  # snakemake related
  from .snaketools import modules
  from .snaketools import SequanaConfig
  from .snaketools import Module, ModuleFinder
  
  
  # tools
  from .adapters import AdapterReader, FindAdaptersFromIndex
  from .bamtools import BAM, SAMFlags
  from .bedtools import GenomeCov
  from .coverage import Coverage
  from .fastq import FastQ, FastQC, Identifier
  from .fasta import FastA
  from .kraken_builder import KrakenBuilder
  from .krona import KronaMerger
  from .kraken import KrakenResults, KrakenPipeline, KrakenAnalysis, KrakenDownload
  from .phred import Quality
  from .running_median import RunningMedian
  from .snpeff import SnpEff
  from .vcf_filter import VCF
  
  # Reports
  from sequana.reporting.report_bam import BAMReport
  from sequana.reporting.report_fastqc import FastQCReport
  from sequana.reporting.report_fastq_stats import FastQStatsReport
  from sequana.reporting.report_summary import SequanaSummary
  
  # The standalone app
  from . import scripts
  
  
  def sequana_data(filename=None, where="testing"):
      """Simple utilities to retrieve data sets from gdsctools/share directory"""
      import os
      import easydev
      import glob
      sequana_path = easydev.get_package_location('sequana')
      sharedir = os.sep.join([sequana_path , "sequana", 'resources'])
  
  
      if filename is None:
          for thisdir in ['data', 'testing']:
              print('From %s directory:' % thisdir)
              for filename in glob.glob(sharedir + "/%s/*" % thisdir):
                  filename = os.path.split(filename)[1]
                  to_ignore = ["__init__.py", "__pycache__"]
                  if filename.endswith('.pyc') or filename in to_ignore:
                      pass
                  else:
                      print(' - sequana("%s", "%s")' % (os.path.split(filename)[1], thisdir))
          raise ValueError("Choose a valid file from the list above")
      # in the code one may use / or \ 
      if where:
          filename = os.sep.join([sharedir, where, filename])
      else:
          filename = os.sep.join([sharedir, filename])
  
      if os.path.exists(filename) is False:
          raise Exception('unknown file %s. Type sequana_data() to get a list of valid names' % filename)
  
  
      return filename
  
  
new_contents: __version__ = "$Rev: 10 $"
  import pkg_resources
  try:
      version = pkg_resources.require("sequana")[0].version
  except:
      version = __version__
  
  from easydev import CustomConfig
  configuration = CustomConfig("sequana", verbose=False)
  sequana_config_path = configuration.user_config_dir
  
  # snakemake related
  from .snaketools import modules
  from .snaketools import SequanaConfig
  from .snaketools import Module, ModuleFinder
  
  
  # tools
  from .adapters import AdapterReader, FindAdaptersFromIndex, Adapter
  from .bamtools import BAM, SAMFlags
  from .bedtools import GenomeCov
  from .coverage import Coverage
  from .fastq import FastQ, FastQC, Identifier
  from .fasta import FastA
  from .kraken_builder import KrakenBuilder
  from .krona import KronaMerger
  from .kraken import KrakenResults, KrakenPipeline, KrakenAnalysis, KrakenDownload
  from .phred import Quality
  from .running_median import RunningMedian
  from .snpeff import SnpEff
  from .vcf_filter import VCF
  
  # Reports
  from sequana.reporting.report_bam import BAMReport
  from sequana.reporting.report_fastqc import FastQCReport
  from sequana.reporting.report_fastq_stats import FastQStatsReport
  from sequana.reporting.report_summary import SequanaSummary
  
  # The standalone app
  from . import scripts
  
  
  def sequana_data(filename=None, where=None):
      """Simple utilities to retrieve data sets from gdsctools/share directory"""
      import os
      import easydev
      import glob
      sequana_path = easydev.get_package_location('sequana')
      sharedir = os.sep.join([sequana_path , "sequana", 'resources'])
      directories = ['data', 'testing', 'data/adapters']
  
      if filename is None:
          for thisdir in directories:
              print('From %s directory:' % thisdir)
              for filename in glob.glob(sharedir + "/%s/*" % thisdir):
                  filename = os.path.split(filename)[1]
                  to_ignore = ["__init__.py", "__pycache__"]
                  if filename.endswith('.pyc') or filename in to_ignore:
                      pass
                  else:
                      print(' - sequana("%s", "%s")' % (os.path.split(filename)[1], thisdir))
          raise ValueError("Choose a valid file from the list above")
      # in the code one may use / or \ 
      if where:
          filename = os.sep.join([sharedir, where, filename])
      else:
          def _get_valid_file(filename, directory):
              filename = os.sep.join([sharedir, directory, filename])
              if os.path.exists(filename) is False:
                  return False
              else:
                  return filename
  
          # try to introspect the different directories
          # return filename if found otherwise raise error
          for thisdir in directories:
              if _get_valid_file(filename, thisdir):
                  return _get_valid_file(filename, thisdir)
          raise Exception("unknown file %s. Type sequana_data() to get a list of valid names" % filename)
  
      return filename
  
  
subject: update get_data function