Skip to content

Molar extinction coefficient - #538

Closed
pyahmed wants to merge 5 commits into
biopython:masterfrom
pyahmed:patch-1
Closed

pyahmed wants to merge 5 commits into
biopython:masterfrom
pyahmed:patch-1

Conversation

@pyahmed

@pyahmed pyahmed commented May 5, 2015

Copy link
Copy Markdown
Contributor

Would be nice to have calculation of the molar extinction coefficient. Changes are trivial :-)

Returns two values:

  • assuming Cys-residues are reduced (no contribution to molar extinction coefficient)
  • assuming Cys-Cys-bonds/pairs (Cystine), this obviously requires even number of residues

pyahmed added 2 commits May 5, 2015 18:26
Would be nice to have calculation of the molar extinction coefficient. Changes are trivial :-)
* Test both values for molar extinction coefficient
@pyahmed

pyahmed commented May 7, 2015

Copy link
Copy Markdown
Contributor Author

Added test to test_Protparam.py

@peterjc

peterjc commented May 7, 2015

Copy link
Copy Markdown
Member

@sbassi Could you look this over please?

Account for sequences with zero cysteines
@pyahmed

pyahmed commented May 7, 2015

Copy link
Copy Markdown
Contributor Author

Small error with sequences that had 0 cysteines, is fixed now.

Remove print-statement. Should be good now ;-)
@pyahmed

pyahmed commented May 7, 2015

Copy link
Copy Markdown
Contributor Author

Removed print-statement - now it should be good :-)

@peterjc

peterjc commented May 22, 2015

Copy link
Copy Markdown
Member

Unfortunately this comment 314bf7d#commitcomment-11327805 isn't showing up on this pull request, but the same code is here too.

@Eddie1802 is worried about the if num_aa['C']%2 != 0: if-else-block and suggests an alternative mec_cystines = mec_reduced + (num_aa['C']//2)*125 which can be tested against the ExPASy protparam tool (http://web.expasy.org/protparam/)

Fixed incorrect calculation of mec_cystines - as suggested by @Eddie1802
@pyahmed

pyahmed commented May 23, 2015

Copy link
Copy Markdown
Contributor Author

Was indeed wrong - should be fixed and working for all cases now.

@pyahmed

pyahmed commented Jul 13, 2015

Copy link
Copy Markdown
Contributor Author

Anything else required to get this accepted? Let me know :-)

@peterjc

peterjc commented Aug 18, 2017

Copy link
Copy Markdown
Member

Sorry, this looks good to go - but I'd lost track of the pull request. There will be some minor style changes to meet our now stricter PEP8 checks (adding some spaces around the operators), but I'm happy to tackle that.

Are you happy to dual licence your contributions under both the Biopython License Agreement AND the BSD 3-Clause License? See #898.

Also, are you happy to be thanked by name in the NEWS.rst and CONTRIB.rst files?

@pyahmed

pyahmed commented Aug 18, 2017

Copy link
Copy Markdown
Contributor Author

Yes I'm fine with dual license. If you could use Yasar L. Ahmed (real name) as contributor name in the two files, that would be awesome.

Thanks!

peterjc added a commit to peterjc/biopython that referenced this pull request Aug 18, 2017
See preceeding commits from pull request biopython#538.
@peterjc

peterjc commented Aug 18, 2017 •

Copy link
Copy Markdown
Member

Great - rebased and applied to master, see commit leading up to c74e805 - thank you!

@peterjc peterjc closed this Aug 18, 2017
MarkusPiotrowski pushed a commit to MarkusPiotrowski/biopython that referenced this pull request Oct 31, 2017
See preceeding commits from pull request biopython#538.
@peterjc

peterjc commented Sep 20, 2018

Copy link
Copy Markdown
Member

@pyahmed Hello again Yasar. Are you happy to dual licence your contributions under both the Biopython License Agreement AND the BSD 3-Clause License? See #898. Thank you.

@pyahmed

pyahmed commented Sep 20, 2018

Copy link
Copy Markdown
Contributor Author

I'm fine with dual licensing under Biopython License Agreement AND the BSD 3-Clause License.

@peterjc

peterjc commented Sep 20, 2018

Copy link
Copy Markdown
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants