Skip to content

Conversation

@Koeng101
Copy link
Contributor

This adds features+test to import or export codon tables as JSON files. This does NOT add in that feature for the command line interface - I am building it to import as part of a webservice that supplies codon tables as JSON.

Probably good to add it into the CLI, but honestly I might need some instruction on how to do that. I can set up an issue to do that, probably can come later.

Keoni Gandall added 5 commits November 20, 2020 09:11
…quence file to

where the optimization table is actually build. This change allows faithful representation
of codon tables generated from Sequence files.
Copy link
Collaborator

@TimothyStiles TimothyStiles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve these changes but perhaps there's someone else who can review it too?

@Koeng101
Copy link
Contributor Author

Any suggestions?

@TimothyStiles
Copy link
Collaborator

I'm not sure. What I think I'll do before we merge is actually look up what this PRs test coverage is then review it again or merge it if it's good enough.

@Koeng101
Copy link
Contributor Author

Any way to have a little bot that tells us that on the PRs directly or something?

@Koeng101
Copy link
Contributor Author

Koeng101 commented Nov 22, 2020

According to go test cover, the only line of code that is missing a test is

func ReadCodonJSON(path string) CodonTable {
        file, err := ioutil.ReadFile(path)
        if err != nil {
                // return 0, fmt.Errorf("Failed to open file %s for unpack: %s", gzFilePath, err)
        }

Not really sure how to test that, but basically I have coverage for things other than that. This, btw, doesn't have a test for any of the other read functions.

@TimothyStiles TimothyStiles merged commit 63573e9 into prime Nov 23, 2020
@TimothyStiles TimothyStiles deleted the codonTableJSON branch April 15, 2021 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants