6 kyu

Decompose double strand DNA into 6 reading frames

98 of 209Javatlacati
Description
Loading description...
Strings
Fundamentals
  • Please sign in or sign up to leave a comment.
  • dfhwze Avatar

    See comments below. Coffeescript translation is bugged and requires the user to provide a hidden function reverseSingleStrand which influences reference solution.

  • xshade Avatar

    The basic test expect: 'Frame 1: AGG TGA ...' but the randoms test expets : 'AGA CGA GCT ..' and is imposible complete this kata.

    • xshade Avatar

      CoffeScript

    • Javatlacati Avatar

      Well at leat one person has completed the kata on coffeescript so perhaps you are not asking the right questions

    • xshade Avatar

      The only way to solve it is to evaluate if the input string matches the basic test and return the output in the format of that test, otherwise return in the manner expected by the random tests. But that solution implies bad practices. The random tests do not respect the format of the output requested in the description of the Kata.

    • Javatlacati Avatar

      please ellaborate

    • xshade Avatar

      Output required by the instructions:

      Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
      Frame 2: A GGT GAC ACC GCA AGC CTT ATA TTA GC
      Frame 3: AG GTG ACA CCG CAA GCC TTA TAT TAG C
      
      Reverse Frame 1: GCT AAT ATA AGG CTT GCG GTG TCA CCT
      Reverse Frame 2: G CTA ATA TAA GGC TTG CGG TGT CAC CT
      Reverse Frame 3: GC TAA TAT AAG GCT TGC GGT GTC ACC T
      

      Output required by the basic test:

      Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
      Frame 2: A GGT GAC ACC GCA AGC CTT ATA TTA GC
      Frame 3: AG GTG ACA CCG CAA GCC TTA TAT TAG C
      
      Reverse Frame 1: GCT AAT ATA AGG CTT GCG GTG TCA CCT
      Reverse Frame 2: G CTA ATA TAA GGC TTG CGG TGT CAC CT
      Reverse Frame 3: GC TAA TAT AAG GCT TGC GGT GTC ACC T
      

      Output required by Random tests:

      GCT TGT AAC AGA GAT TCC ATG CAG CGC,G CTT GTA ACA GAG ATT CCA TGC AGC GC,GC TTG TAA CAG AGA TTC CAT GCA GCG C
      
      Reverse Frame 1: GCG CTG CAT GGA ATC TCT GTT ACA AGC
      Reverse Frame 2: G CGC TGC ATG GAA TCT CTG TTA CAA GC
      Reverse Frame 3: GC GCT GCA TGG AAT CTC TGT TAC AAG C

      Note the first line of the outputs

      Instructions: Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
      Basic test: Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC
      Random tests: GCT TGT AAC AGA GAT TCC ATG CAG CGC ,G C CTT GTA ACA....

      Obviously that makes it impossible to complete the kata.

    • Javatlacati Avatar

      I think that this is some issue specific to your solution since other people can pass both basic an random tests with the same code. You can paste your code here and mark it as spam so those that have already completed it can help you.

    • dfhwze Avatar

      This is a problem with the Coffeescript translation, NOT with the user's solution. The reference solution depends on a function reverseSingleStrand which the user has to create to be able to build the tests, but this gives users autonomy over part of the expected results

    • dfhwze Avatar

      see my solution how I messed up both my solution and the reference solution, and still was able to pass the kata

  • Grae-Drake Avatar

    Over all this is a good kata, but the output format isn't clearly specified and I ended up having to throw the expected output and my own output into a diff in order to spot whitespace differences. Same feedback applies to the single strand kata.