RE: [MORPHMET] Trouble with 2-D morphomeric analysis in geomorph

2018-08-02 Thread Murat Maga
x-uw-ex-currentlocation-365-recipient: Outside
x-microsoft-antispam-prvs: 

x-exchange-antispam-report-test: UriScan:(85827821059158)(100405760836317);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: 
BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(20161123562045)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016);SRVR:MWHPR08MB3341;BCL:0;PCL:0;RULEID:;SRVR:MWHPR08MB3341;
x-forefront-prvs: 07521929C1
x-forefront-antispam-report: 
SFV:NSPM;SFS:(10009020)(979002)(366004)(3986042)(396003)(136003)(346002)(376002)(13464003)(189003)(199004)(786003)(7736002)(99286004)(9686003)(8936002)(102836004)(6306002)(316002)(305945005)(11346002)(53936002)(486006)(55016002)(26005)(8676002)(81156014)(966005)(81166006)(186003)(33656002)(476003)(110136005)(86362001)(14454004)(74316002)(6246003)(75432002)(446003)(68736007)(106356001)(7696005)(88552002)(6116002)(3846002)(47861)(2906002)(256004)(66066001)(525012)(25786009)(53386004)(3906042)(6436002)(97736004)(53546011)(566031)(290011)(105586002)(6506007)(229853002)(76176011)(969003)(989001)(999001)(1009001)(1019001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR08MB3341;H:MWHPR08MB2894.namprd08.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1;
received-spf: None (protection.outlook.com: uw.edu does not designate
 permitted sender hosts)
x-microsoft-antispam-message-info: 
1xKMPAs4dBQNwwWoSuzGlAVZdWgEERqFzy7cG3n5Odv+NuzgHCetL9uefZdme2JkVIYU9XQhyV8+pCbRVX/NEoFPNvBNwOX7gLOnojeS3MJS3NH7ZJuxjPRPg0j6W23vimaId0AgcZPZf2aUmhk8lAQoEVCr15/94I8Wcbu78yf8Tb749YiOw8EudIYgNnnzq9ZbHBDfZ7+9RTWjh00vWzQXUwACB6Rz7YgqTqhGKYOkccBBgLs3UBd7e2dyrSuvhXuAZ2VAfckD5pJ0YcrWULCGW36vqJbSU/+mH7LmovculvXeJjja2PuOKLro2aFVVj4p99h47kTWbKQD5C5sKRorOMIQwedaVrnwIAIzRsk=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 
fb5f3a01-d2fd-43a2-c0b6-08d5f8a0174b
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Aug 2018 17:48:01.1118
 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f6b6dd5b-f02f-441a-99a0-162ac5060bd2
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR08MB3341
X-OriginatorOrg: uw.edu
X-PMX-Version: 6.3.3.2656215, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 
2018.8.2.173917, AntiVirus-Engine: 5.46.1.0, AntiVirus-Data: 2018.3.16.5461004
X-PMX-Server: mxout22.s.uw.edu
X-Uwash-Spam: Gauge=X, Probability=10%, Report='
 TO_IN_SUBJECT 0.5, HTML_00_01 0.05, HTML_00_10 0.05, SUPERLONG_LINE 0.05, 
BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, 
BULK_EMAIL_SENDER 0, CTE_BASE64 0, DKIM_SIGNATURE 0, FROM_EDU_TLD 0, IN_REP_TO 
0, LEGITIMATE_SIGNS 0, MSG_THREAD 0, NO_URI_HTTPS 0, REFERENCES 0, 
SINGLE_URI_IN_BODY 0, SPF_NEUTRAL 0, SXL_IP_TFX_ESG 0, WEBMAIL_SOURCE 0, 
WEBMAIL_XOIP 0, WEBMAIL_X_IP_HDR 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, 
__BOUNCE_NDR_SUBJ_EXEMPT 0, __C230066_P5 0, __CANPHARM_UNSUB_LINK 0, 
__CP_URI_IN_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __DQ_NEG_HEUR 0, 
__DQ_NEG_IP 0, __FORWARDED_MSG 0, __FRAUD_BODY_WEBMAIL 0, 
__FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FRAUD_WEBMAIL 0, 
__FUR_RDNS_OUTLOOK 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_XOIP 0, __IN_REP_TO 0, 
__MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MIME_VERSION 0, 
__NO_HTML_TAG_RAW 0,
 __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_WEBMAIL 0, __REFERENCES 0, __SANE_MSGID 0, 
__SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __SUBJ_REPLY 0, 
__TO_IN_SUBJECT 0, __TO_MALFORMED_2 0, __TO_NAME 0, __TO_NAME_DIFF_FROM_ACC 0, 
__TO_REAL_NAMES 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_PATH 0, __URI_NS 
, __URI_WITHOUT_PATH 0'
X-Original-Sender: m...@uw.edu
X-Original-Authentication-Results: mx.google.com;   dkim=pass
 header.i=@uwnetid.onmicrosoft.com header.s=selector1-uw-edu
 header.b=Fhe4DiM0;   spf=pass (google.com: domain of m...@uw.edu
 designates 128.95.242.222 as permitted sender) smtp.mailfrom=m...@uw.edu
Precedence: list
Mailing-list: list morphmet@morphometrics.org; contact 
morphmet+own...@morphometrics.org
List-ID: 
X-Spam-Checked-In-Group: morphmet@morphometrics.org
X-Google-Group-Id: 545891634474
List-Post: ,
 
List-Help: 
,
 
List-Archive: 
List-Unsubscribe: 
,
 

Re: [MORPHMET] curiosity about ancestral shape reconstruction

2018-08-02 Thread Polly, P. David
My reply to Andrea the other day bounced from the list and Andrea only copied 
some of it in his reply so I'm reposting the whole thing in case anyone is 
interested.  (thanks Dennis Slice for helping me with the bounce).

Hi Andrea,

Using a Brownian motion model, ancestor reconstructions are essentially means 
of the tip taxa weighted by the branch lengths connecting them to the nodes.  
Branch length is arguably more important for the outcome than tree topology.  
In your example, B and C are likely to have much stronger influence on the 
reconstruction than A because of this.

Consider a scenario in which A, B, and C form a trichotomy and you are trying 
to reconstruct their ancestral trait value.  If they are all extant species 
they will contribute equally because their branch lengths will be the same, the 
ancestral estimate would therefore be the simple average of the three.  But if 
B and C are extinct, their branch lengths will be shorter and they will 
contribute proportionally more to the reconstruction.  If B and C lie very 
close in time to the node, A will have very little impact on the reconstruction.

Consider another scenario with relationships ((A,B), C) and you are 
reconstructing the ancestor of (A,B). If all three taxa are extant, A and B 
will have the strongest influence because the total branch length between C and 
the node of interest is longer.  However, if C lived only a short time after 
the base node and if the node (A,B) is deep (closer to the base of the tree 
than to its tips) then C will have a stronger influence on the ancestral 
reconstruction of node (A,B) than do the tip taxa A & B.

I think part of your question involves the morphology of B and C being poorly 
estimated (as they might be if you are using mean values of quantitative traits 
for the tips of A, B, and C).  These estimates are also important.  If B & C 
are badly estimated, they will bias the ancestor reconstruction.  If they are 
connected to the nodes by long branches relative to well estimated taxa, the 
effect will be minimal, but if they are connected by short branches their bias 
will overwhelm the contribution of better estimated but more distant taxa.

With best wishes,
David



P. David Polly
Robert R. Shrock Professor
Department of Earth and Atmospheric Sciences
Adjunct Professor, Biology and Anthropology
Indiana University
1001 E. 10th Street
Bloomington, IN  47405-1405
pdpo...@indiana.edu
+1 (812) 855-7994
http://pages.iu.edu/~pdpolly/

P. David Polly
Robert R. Shrock Professor
Department of Earth and Atmospheric Sciences
Adjunct Professor, Biology and Anthropology
Indiana University
1001 E. 10th Street
Bloomington, IN  47405-1405
pdpo...@indiana.edu
+1 (812) 855-7994
http://pages.iu.edu/~pdpolly/








On 30 Jul 2018, at 10:57 AM, Polly, P. David 
mailto:pdpo...@indiana.edu>> wrote:

Hi Andrea,

Using a Brownian motion model, ancestor reconstructions are essentially means 
of the tip taxa weighted by the branch lengths connecting them to the nodes.  
Branch length is arguably more important for the outcome than tree topology.  
In your example, B and C are likely to have much stronger influence on the 
reconstruction than A because of this.

Consider a scenario in which A, B, and C form a trichotomy and you are trying 
to reconstruct their ancestral trait value.  If they are all extant species 
they will contribute equally because their branch lengths will be the same, the 
ancestral estimate would therefore be the simple average of the three.  But if 
B and C are extinct, their branch lengths will be shorter and they will 
contribute proportionally more to the reconstruction.  If B and C lie very 
close in time to the node, A will have very little impact on the reconstruction.

Consider another scenario with relationships (A,B), C) and you are 
reconstructing the ancestor of (A,B). If all three taxa are extant, A and B 
will have the strongest influence because the total branch length between C and 
the node of interest is longer.  However, if C lived only a short time after 
the base node and if the node (A,B) is deep (closer to the base of the tree 
than to its tips) then C will have a stronger influence on the ancestral 
reconstruction of node (A,B) than do the tip taxa A & B.

I think part of your question involves the morphology of B and C being poorly 
estimated (as they might be if you are using mean values of quantitative traits 
for the tips of A, B, and C).  These estimates are also important.  If B & C 
are badly estimated, they will bias the ancestor reconstruction.  If they are 
connected to the nodes by long branches relative to well estimated taxa, the 
effect will be minimal, but if they are connected by short branches their bias 
will overwhelm the contribution of better estimated but more distant taxa.

With best wishes,
David



P. David Polly
Robert R. Shrock Professor
Department of Earth and Atmospheric Sciences

[MORPHMET] Trouble with 2-D morphomeric analysis in geomorph

2018-08-02 Thread Ian F
I am trying to do an analysis of three specimens. I am using semi-landmarks and 
having trouble. perhaps someone can point out mt error? these are my results

Generalized Procrustes Analysis
with Partial Procrustes Superimposition

-4 fixed landmarks
12 semilandmarks (sliders)
2-dimensional landmarks
6 GPA iterations to converge
Minimized Bending Energy used


Consensus (mean) Configuration

   X   Y
[1,]  0.51447153 -0.03794928
[2,]  0.36957021  0.11431610
[3,] -0.11602250  0.19898458
[4,] -0.40489951  0.11095030
[5,] -0.43738229 -0.09965594
[6,] -0.20913543 -0.09698422
[7,]  0.04257626 -0.09131803
[8,]  0.29799009 -0.04811314

it should be three individuals with 4 landmarks and 4 sliders each. i want to 
perform PCA on the procrustes coordinates. my code and data are below. Im new 
to R and its probably an easy fix im just really confused. any help is greatly 
appreciated.  






Code:Y <- arrayspecs(coordsrformat, k=2, p= ncol(coordsrformat)/2)

slidermatrix

Y.gpa <- gpagen(Y,curves=slidermatrix)   
summary(Y.gpa)
plot(Y.gpa)

Y.gpa <- gpagen(Y,curves=slidermatrix,ProcD=FALSE )   
summary(Y.gpa)
plot(Y.gpa)
a<-(Y.gpa$coords)
plotTangentSpace(a) 




slider matrix:  

before  slide   after
5   6   7
7   8   1
1   2   3
3   4   5
1   8   7
7   6   5
5   4   3
3   2   1
1   2   3
3   4   5
5   6   7
7   8   1


coordsrformat:


163018271530154911981345908 1557833 1840
102718951223190714171887 
2767108126331581213920471693175315351159
184110672151100924371071 
2956928 29361692211223601300178413041016
1700888 2084832 2480872



-- 
MORPHMET may be accessed via its webpage at http://www.morphometrics.org
--- 
You received this message because you are subscribed to the Google Groups 
"MORPHMET" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to morphmet+unsubscr...@morphometrics.org.