parameters: ()
docstring: Read the file with first 100k sequences from C. elegans
      and generate some easier datasets.
docstring_summary: Read the file with first 100k sequences from C. elegans
      and generate some easier datasets.
docstring_tokens: Read the file with first 100k sequences from C . elegans and generate some easier datasets .
function: def create_dataset():
      """Read the file with first 100k sequences from C. elegans
      and generate some easier datasets.
      """
  
      if not have_arff:
          print 'import arff failed, currently cannot create data'
          return
  
      # convert data to arff format
      gen_arff('C_elegans_acc_100000.fasta.bz2','C_elegans_acc_gc.arff','C_elegans_acc_seq.arff',\
               'C_elegans_acc_seq2.arff','C_elegans_acc_freq.arff',\
               num_seqs=100000,subset=True,overwrite=True,normalise=False,\
               max_pos=200,max_neg=2000)
  
      print 'Convert from arff to csv and fasta'
      convert('C_elegans_acc_gc.arff','C_elegans_acc_gc.csv','vec')
      convert('C_elegans_acc_seq.arff','C_elegans_acc_seq.csv','seq')
      convert('C_elegans_acc_freq.arff','C_elegans_acc_freq.csv','vec')
      convert('C_elegans_acc_seq2.arff','C_elegans_acc_seq2.csv','mseq')
      convert('C_elegans_acc_seq.arff','C_elegans_acc_seq.fa','seq')
function_tokens: def create_dataset ( ) : if not have_arff : print 'import arff failed, currently cannot create data' return # convert data to arff format gen_arff ( 'C_elegans_acc_100000.fasta.bz2' , 'C_elegans_acc_gc.arff' , 'C_elegans_acc_seq.arff' , 'C_elegans_acc_seq2.arff' , 'C_elegans_acc_freq.arff' , num_seqs = 100000 , subset = True , overwrite = True , normalise = False , max_pos = 200 , max_neg = 2000 ) print 'Convert from arff to csv and fasta' convert ( 'C_elegans_acc_gc.arff' , 'C_elegans_acc_gc.csv' , 'vec' ) convert ( 'C_elegans_acc_seq.arff' , 'C_elegans_acc_seq.csv' , 'seq' ) convert ( 'C_elegans_acc_freq.arff' , 'C_elegans_acc_freq.csv' , 'vec' ) convert ( 'C_elegans_acc_seq2.arff' , 'C_elegans_acc_seq2.csv' , 'mseq' ) convert ( 'C_elegans_acc_seq.arff' , 'C_elegans_acc_seq.fa' , 'seq' )