Skip to content

Correlation Analysis#4

Open
denizdgn wants to merge 2 commits intomasterfrom
correlation
Open

Correlation Analysis#4
denizdgn wants to merge 2 commits intomasterfrom
correlation

Conversation

@denizdgn
Copy link
Copy Markdown
Owner

No description provided.

@denizdgn denizdgn marked this pull request as draft April 10, 2023 17:04
@denizdgn denizdgn marked this pull request as ready for review April 13, 2023 17:33
raise NotImplementedError()

@property
def filtered_correlation_matrix(self):
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't see the reason to have this function - couldn't this step just be performed in self.run?

also, it would be nice if we could have a low and high threshold, and keep values that are > high and < low. This is because we might want correlations that are larger in absolute value than a certain threshold (and keep the highly negative corrs)

def __init__(self, ref: str, traj: str, atoms: str, backbone: bool) -> None:
self.ref = ref
self.traj = traj
self.selected_atoms = "backbone" if backbone else f"name {atoms.replace(',', ' ')}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

usually these measures are calculated on just CAs rather than backbone.

Even then, it would be good to have e.g. a default selection option (all CA atoms in protein) or the possibility to give a custom MDAnalysis selection string, akin to what we do in groups for hydrogen bonds

(".trj, .pdb, .xtc, .dcd"), file_name).validate_file_extension(),
required=True)
common_args.add_argument("--threshold", type=float, default=0, help="Threshold for the correlation analysis")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think a step is missing here - before calculating DCCM we should best superimpose each trajectory frame to one reference frame (usually the topology) to eliminate roto-translations as much as possible. This fit procedure should also allow to define custom groups to select atoms/residues to fit on (default could be still all CA)

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