| | | | | | | | | | | | | | | | | | | | | |
<?xml version="1.0" encoding="windows-1252"?> |
<!-- XBRL document created with Toppan Merrill Bridge 9.5.2.4 --> |
<!-- Based on XBRL 2.1 --> |
<!-- Created on: 3/12/2020 7:44:32 AM --> |
<!-- Modified on: 3/12/2020 7:44:32 AM --> |
<linkbase xmlns="http://www.xbrl.org/2003/linkbase" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd"> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#StatementConsolidatedBalanceSheets" roleURI="http://www.rubiustx.com/role/StatementConsolidatedBalanceSheets"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#StatementCondensedConsolidatedStatementsOfOperationsAndComprehensiveLossCalc2" roleURI="http://www.rubiustx.com/role/StatementCondensedConsolidatedStatementsOfOperationsAndComprehensiveLossCalc2"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss" roleURI="http://www.rubiustx.com/role/StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#StatementConsolidatedStatementsOfCashFlows" roleURI="http://www.rubiustx.com/role/StatementConsolidatedStatementsOfCashFlows"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureInvestmentsAndFairValueOfFinancialAssetsAndLiabilitiesDetails" roleURI="http://www.rubiustx.com/role/DisclosureInvestmentsAndFairValueOfFinancialAssetsAndLiabilitiesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosurePropertyPlantAndEquipmentNetDetails" roleURI="http://www.rubiustx.com/role/DisclosurePropertyPlantAndEquipmentNetDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureAccruedExpensesAndOtherCurrentLiabilitiesDetails" roleURI="http://www.rubiustx.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilitiesDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureDebtDetails" roleURI="http://www.rubiustx.com/role/DisclosureDebtDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureDebtCurrentAndNonCurrentDetails" roleURI="http://www.rubiustx.com/role/DisclosureDebtCurrentAndNonCurrentDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureIncomeTaxesUSFederalStatutoryIncomeTaxRateDetails" roleURI="http://www.rubiustx.com/role/DisclosureIncomeTaxesUSFederalStatutoryIncomeTaxRateDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureIncomeTaxesNetDeferredTaxAssetsDetails" roleURI="http://www.rubiustx.com/role/DisclosureIncomeTaxesNetDeferredTaxAssetsDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureLeasesMinimumLeasePaymentsDetailsCalc2" roleURI="http://www.rubiustx.com/role/DisclosureLeasesMinimumLeasePaymentsDetailsCalc2"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureLeasesMinimumLeasePaymentsDetails" roleURI="http://www.rubiustx.com/role/DisclosureLeasesMinimumLeasePaymentsDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureLeasesSubleaseDetails" roleURI="http://www.rubiustx.com/role/DisclosureLeasesSubleaseDetails"/> |
| <roleRef xlink:type="simple" xlink:href="ruby-20191231.xsd#DisclosureLeasesLeasePortfolioDetails" roleURI="http://www.rubiustx.com/role/DisclosureLeasesLeasePortfolioDetails"/> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/StatementConsolidatedBalanceSheets" xlink:type="extended" xlink:title="00100 - Statement - CONSOLIDATED BALANCE SHEETS"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Assets" xlink:label="us-gaap_Assets"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsCurrent" xlink:label="us-gaap_AssetsCurrent_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_AssetsCurrent_637195958698482749" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="us-gaap_CashAndCashEquivalentsAtCarryingValue_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_637195958698482749" xlink:to="us-gaap_CashAndCashEquivalentsAtCarryingValue_637195958698482749" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermInvestments" xlink:label="us-gaap_ShortTermInvestments_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_637195958698482749" xlink:to="us-gaap_ShortTermInvestments_637195958698482749" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_PrepaidExpenseAndOtherCurrent" xlink:label="ruby_PrepaidExpenseAndOtherCurrent_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_637195958698482749" xlink:to="ruby_PrepaidExpenseAndOtherCurrent_637195958698482749" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedCashCurrent" xlink:label="us-gaap_RestrictedCashCurrent_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsCurrent_637195958698482749" xlink:to="us-gaap_RestrictedCashCurrent_637195958698482749" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="us-gaap_PropertyPlantAndEquipmentNet_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_PropertyPlantAndEquipmentNet_637195958698482749" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RestrictedCashNoncurrent" xlink:label="us-gaap_RestrictedCashNoncurrent_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_RestrictedCashNoncurrent_637195958698482749" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseRightOfUseAsset" xlink:label="us-gaap_OperatingLeaseRightOfUseAsset_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_OperatingLeaseRightOfUseAsset_637195958698482749" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAssetsNoncurrent" xlink:label="us-gaap_OtherAssetsNoncurrent_637195958698482749"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Assets" xlink:to="us-gaap_OtherAssetsNoncurrent_637195958698482749" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesAndStockholdersEquity" xlink:label="us-gaap_LiabilitiesAndStockholdersEquity"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_Liabilities" xlink:label="us-gaap_Liabilities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_Liabilities_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LiabilitiesCurrent" xlink:label="us-gaap_LiabilitiesCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_637195958698638649" xlink:to="us-gaap_LiabilitiesCurrent_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccountsPayableCurrent" xlink:label="us-gaap_AccountsPayableCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_637195958698638649" xlink:to="us-gaap_AccountsPayableCurrent_637195958698638649" order="1" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityCurrent" xlink:label="us-gaap_OperatingLeaseLiabilityCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_637195958698638649" xlink:to="us-gaap_OperatingLeaseLiabilityCurrent_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:label="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesCurrent_637195958698638649" xlink:to="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities_637195958698638649" order="3" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="us-gaap_LongTermDebtNoncurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_637195958698638649" xlink:to="us-gaap_LongTermDebtNoncurrent_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherLiabilitiesNoncurrent" xlink:label="us-gaap_OtherLiabilitiesNoncurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_637195958698638649" xlink:to="us-gaap_OtherLiabilitiesNoncurrent_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent" xlink:label="us-gaap_OperatingLeaseLiabilityNoncurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_637195958698638649" xlink:to="us-gaap_OperatingLeaseLiabilityNoncurrent_637195958698638649" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CapitalLeaseObligationsNoncurrent" xlink:label="us-gaap_CapitalLeaseObligationsNoncurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_Liabilities_637195958698638649" xlink:to="us-gaap_CapitalLeaseObligationsNoncurrent_637195958698638649" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_StockholdersEquity" xlink:label="us-gaap_StockholdersEquity_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LiabilitiesAndStockholdersEquity" xlink:to="us-gaap_StockholdersEquity_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CommonStockValue" xlink:label="us-gaap_CommonStockValue_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_637195958698638649" xlink:to="us-gaap_CommonStockValue_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AdditionalPaidInCapital" xlink:label="us-gaap_AdditionalPaidInCapital_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_637195958698638649" xlink:to="us-gaap_AdditionalPaidInCapital_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_637195958698638649" xlink:to="us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RetainedEarningsAccumulatedDeficit" xlink:label="us-gaap_RetainedEarningsAccumulatedDeficit_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_StockholdersEquity_637195958698638649" xlink:to="us-gaap_RetainedEarningsAccumulatedDeficit_637195958698638649" order="4" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/StatementCondensedConsolidatedStatementsOfOperationsAndComprehensiveLossCalc2" xlink:type="extended" xlink:title="00200 - Statement - CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE LOSS (calc 2)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ComprehensiveIncomeNetOfTax" xlink:label="us-gaap_ComprehensiveIncomeNetOfTax"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTax" xlink:to="us-gaap_NetIncomeLoss_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_ComprehensiveIncomeNetOfTax" xlink:to="us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/StatementConsolidatedStatementsOfOperationsAndComprehensiveLoss" xlink:type="extended" xlink:title="00200 - Statement - CONSOLIDATED STATEMENTS OF OPERATIONS AND COMPREHENSIVE LOSS"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="us-gaap_NetIncomeLoss"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NonoperatingIncomeExpense" xlink:label="us-gaap_NonoperatingIncomeExpense_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetIncomeLoss" xlink:to="us-gaap_NonoperatingIncomeExpense_637195958698638649" order="1" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentIncomeInterest" xlink:label="us-gaap_InvestmentIncomeInterest_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_637195958698638649" xlink:to="us-gaap_InvestmentIncomeInterest_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestExpense" xlink:label="us-gaap_InterestExpense_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_637195958698638649" xlink:to="us-gaap_InterestExpense_637195958698638649" order="2" use="optional" weight="-1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="us-gaap_FairValueAdjustmentOfWarrants_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_637195958698638649" xlink:to="us-gaap_FairValueAdjustmentOfWarrants_637195958698638649" order="3" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="us-gaap_OtherNonoperatingIncomeExpense_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NonoperatingIncomeExpense_637195958698638649" xlink:to="us-gaap_OtherNonoperatingIncomeExpense_637195958698638649" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="us-gaap_OperatingIncomeLoss_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetIncomeLoss" xlink:to="us-gaap_OperatingIncomeLoss_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="us-gaap_OperatingExpenses_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingIncomeLoss_637195958698638649" xlink:to="us-gaap_OperatingExpenses_637195958698638649" order="1" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="us-gaap_GeneralAndAdministrativeExpense_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_637195958698638649" xlink:to="us-gaap_GeneralAndAdministrativeExpense_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="us-gaap_ResearchAndDevelopmentExpense_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingExpenses_637195958698638649" xlink:to="us-gaap_ResearchAndDevelopmentExpense_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/StatementConsolidatedStatementsOfCashFlows" xlink:type="extended" xlink:title="00400 - Statement - CONSOLIDATED STATEMENTS OF CASH FLOWS"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:label="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" order="1" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProfitLoss" xlink:label="us-gaap_ProfitLoss_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_ProfitLoss_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="us-gaap_ShareBasedCompensation_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_ShareBasedCompensation_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="us-gaap_DepreciationDepletionAndAmortization_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_DepreciationDepletionAndAmortization_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="us-gaap_FairValueAdjustmentOfWarrants_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_FairValueAdjustmentOfWarrants_637195958698638649" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InvestmentIncomeAmortizationOfDiscount" xlink:label="us-gaap_InvestmentIncomeAmortizationOfDiscount_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_InvestmentIncomeAmortizationOfDiscount_637195958698638649" order="5" use="optional" weight="-1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_GainLossOnSaleOfPropertyPlantEquipment" xlink:label="us-gaap_GainLossOnSaleOfPropertyPlantEquipment_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_GainLossOnSaleOfPropertyPlantEquipment_637195958698638649" order="6" use="optional" weight="-1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherNoncashExpense" xlink:label="us-gaap_OtherNoncashExpense_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_OtherNoncashExpense_637195958698638649" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets" xlink:label="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_IncreaseDecreaseInPrepaidDeferredExpenseAndOtherAssets_637195958698638649" order="8" use="optional" weight="-1" priority="5"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="us-gaap_IncreaseDecreaseInOtherOperatingAssets_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_IncreaseDecreaseInOtherOperatingAssets_637195958698638649" order="9" use="optional" weight="-1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="us-gaap_IncreaseDecreaseInAccountsPayable_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="us-gaap_IncreaseDecreaseInAccountsPayable_637195958698638649" order="10" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_IncreaseDecreaseInAccruedExpensesAndOtherCurrentLiabilities" xlink:label="ruby_IncreaseDecreaseInAccruedExpensesAndOtherCurrentLiabilities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="ruby_IncreaseDecreaseInAccruedExpensesAndOtherCurrentLiabilities_637195958698638649" order="11" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_IncreaseDecreaseOperatingLeaseLiabilities" xlink:label="ruby_IncreaseDecreaseOperatingLeaseLiabilities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="ruby_IncreaseDecreaseOperatingLeaseLiabilities_637195958698638649" order="12" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_IncreaseDecreaseOperatingLeaseRightOfUseAsset" xlink:label="ruby_IncreaseDecreaseOperatingLeaseRightOfUseAsset_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="ruby_IncreaseDecreaseOperatingLeaseRightOfUseAsset_637195958698638649" order="13" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_IncreaseDecreaseInDeferredRent" xlink:label="ruby_IncreaseDecreaseInDeferredRent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInOperatingActivities_637195958698638649" xlink:to="ruby_IncreaseDecreaseInDeferredRent_637195958698638649" order="14" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInInvestingActivities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInInvestingActivities_637195958698638649" order="2" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_637195958698638649" xlink:to="us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_637195958698638649" order="1" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsToAcquireInvestments" xlink:label="us-gaap_PaymentsToAcquireInvestments_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_637195958698638649" xlink:to="us-gaap_PaymentsToAcquireInvestments_637195958698638649" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments" xlink:label="us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInInvestingActivities_637195958698638649" xlink:to="us-gaap_ProceedsFromSaleMaturityAndCollectionsOfInvestments_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect" xlink:to="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" order="3" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="us-gaap_ProceedsFromStockOptionsExercised_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_ProceedsFromStockOptionsExercised_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfStockIssuanceCosts" xlink:label="us-gaap_PaymentsOfStockIssuanceCosts_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_PaymentsOfStockIssuanceCosts_637195958698638649" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock" xlink:label="us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_ProceedsFromIssuanceOfConvertiblePreferredStock_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="us-gaap_ProceedsFromIssuanceInitialPublicOffering_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_ProceedsFromIssuanceInitialPublicOffering_637195958698638649" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfNotesPayable" xlink:label="us-gaap_ProceedsFromRepaymentsOfNotesPayable_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_ProceedsFromRepaymentsOfNotesPayable_637195958698638649" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsForRepurchaseOfCommonStock" xlink:label="us-gaap_PaymentsForRepurchaseOfCommonStock_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_PaymentsForRepurchaseOfCommonStock_637195958698638649" order="6" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromRepaymentsOfSecuredDebt" xlink:label="us-gaap_ProceedsFromRepaymentsOfSecuredDebt_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_ProceedsFromRepaymentsOfSecuredDebt_637195958698638649" order="7" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_RepaymentsOfDebt" xlink:label="us-gaap_RepaymentsOfDebt_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_RepaymentsOfDebt_637195958698638649" order="8" use="optional" weight="-1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts" xlink:label="us-gaap_PaymentsOfDebtIssuanceCosts_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_PaymentsOfDebtIssuanceCosts_637195958698638649" order="9" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans" xlink:label="us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_NetCashProvidedByUsedInFinancingActivities_637195958698638649" xlink:to="us-gaap_ProceedsFromIssuanceOfSharesUnderIncentiveAndShareBasedCompensationPlans_637195958698638649" order="10" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureInvestmentsAndFairValueOfFinancialAssetsAndLiabilitiesDetails" xlink:type="extended" xlink:title="40301 - Disclosure - Investments and Fair Value of Financial Assets and Liabilities (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AssetsFairValueDisclosure" xlink:label="us-gaap_AssetsFairValueDisclosure"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure" xlink:label="us-gaap_CashAndCashEquivalentsFairValueDisclosure_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsFairValueDisclosure" xlink:to="us-gaap_CashAndCashEquivalentsFairValueDisclosure_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities" xlink:label="us-gaap_AvailableForSaleSecuritiesDebtSecurities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AssetsFairValueDisclosure" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecurities_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:to="us-gaap_AvailableForSaleSecuritiesDebtSecurities_637195958698638649" order="1" use="optional" weight="1" priority="3"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_637195958698638649" order="2" use="optional" weight="-1" priority="4"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax" xlink:label="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis" xlink:to="us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_637195958698638649" order="3" use="optional" weight="1" priority="3"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosurePropertyPlantAndEquipmentNetDetails" xlink:type="extended" xlink:title="40401 - Disclosure - Property, Plant and Equipment, Net (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentNet" xlink:label="us-gaap_PropertyPlantAndEquipmentNet"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment" xlink:label="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_PropertyPlantAndEquipmentNet" xlink:to="us-gaap_AccumulatedDepreciationDepletionAndAmortizationPropertyPlantAndEquipment_637195958698638649" order="1" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_PropertyPlantAndEquipmentGross" xlink:label="us-gaap_PropertyPlantAndEquipmentGross_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_PropertyPlantAndEquipmentNet" xlink:to="us-gaap_PropertyPlantAndEquipmentGross_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureAccruedExpensesAndOtherCurrentLiabilitiesDetails" xlink:type="extended" xlink:title="40501 - Disclosure - Accrued Expenses and Other Current Liabilities (Details)"> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:label="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_AccruedRentCurrent" xlink:label="us-gaap_AccruedRentCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:to="us-gaap_AccruedRentCurrent_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_AccruedResearchAndDevelopmentCurrent" xlink:label="ruby_AccruedResearchAndDevelopmentCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:to="ruby_AccruedResearchAndDevelopmentCurrent_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_AccruedGeneralAndAdministrativeExpensesCurrent" xlink:label="ruby_AccruedGeneralAndAdministrativeExpensesCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:to="ruby_AccruedGeneralAndAdministrativeExpensesCurrent_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EmployeeRelatedLiabilitiesCurrent" xlink:label="us-gaap_EmployeeRelatedLiabilitiesCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:to="us-gaap_EmployeeRelatedLiabilitiesCurrent_637195958698638649" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OtherAccruedLiabilitiesCurrent" xlink:label="us-gaap_OtherAccruedLiabilitiesCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:to="us-gaap_OtherAccruedLiabilitiesCurrent_637195958698638649" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_AccruedManufacturingFacilityExpensesCurrent" xlink:label="ruby_AccruedManufacturingFacilityExpensesCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_AccruedExpensesAndOtherCurrentLiabilitiesExcludingCurrentOperatingLeaseLiabilities" xlink:to="ruby_AccruedManufacturingFacilityExpensesCurrent_637195958698638649" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureDebtDetails" xlink:type="extended" xlink:title="40601 - Disclosure - Debt (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebt" xlink:label="us-gaap_LongTermDebt"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearThree_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour" xlink:label="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LongTermDebt" xlink:to="us-gaap_LongTermDebtMaturitiesRepaymentsOfPrincipalInYearFour_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureDebtCurrentAndNonCurrentDetails" xlink:type="extended" xlink:title="40602 - Disclosure - Debt - Current and Non current (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LongTermDebtNoncurrent" xlink:label="us-gaap_LongTermDebtNoncurrent"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet" xlink:label="us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LongTermDebtNoncurrent" xlink:to="us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_637195958698638649" order="1" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_InterestPayableCurrent" xlink:label="us-gaap_InterestPayableCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LongTermDebtNoncurrent" xlink:to="us-gaap_InterestPayableCurrent_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_LongTermDebtNetOfCurrent" xlink:label="ruby_LongTermDebtNetOfCurrent_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LongTermDebtNoncurrent" xlink:to="ruby_LongTermDebtNetOfCurrent_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureIncomeTaxesUSFederalStatutoryIncomeTaxRateDetails" xlink:type="extended" xlink:title="41102 - Disclosure - Income Taxes - U S federal statutory income tax rate (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:label="us-gaap_EffectiveIncomeTaxRateContinuingOperations"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationAtFederalStatutoryIncomeTaxRate_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationChangeInDeferredTaxAssetsValuationAllowance_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseOther_637195958698638649" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationNondeductibleExpenseShareBasedCompensationCost_637195958698638649" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationStateAndLocalIncomeTaxes_637195958698638649" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch" xlink:label="us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_EffectiveIncomeTaxRateContinuingOperations" xlink:to="us-gaap_EffectiveIncomeTaxRateReconciliationTaxCreditsResearch_637195958698638649" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureIncomeTaxesNetDeferredTaxAssetsDetails" xlink:type="extended" xlink:title="41103 - Disclosure - Income Taxes - Net deferred tax assets (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:label="us-gaap_DeferredTaxAssetsLiabilitiesNet"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsGross" xlink:label="us-gaap_DeferredTaxAssetsGross_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:to="us-gaap_DeferredTaxAssetsGross_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_DeferredTaxAssetsCapitalizedIntellectualPropertyCosts" xlink:label="ruby_DeferredTaxAssetsCapitalizedIntellectualPropertyCosts_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_637195958698638649" xlink:to="ruby_DeferredTaxAssetsCapitalizedIntellectualPropertyCosts_637195958698638649" order="1" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_637195958698638649" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseCompensationAndBenefitsShareBasedCompensationCost_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_DeferredTaxAssetsCapitalizedResearchAndDevelopmentExpense" xlink:label="ruby_DeferredTaxAssetsCapitalizedResearchAndDevelopmentExpense_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_637195958698638649" xlink:to="ruby_DeferredTaxAssetsCapitalizedResearchAndDevelopmentExpense_637195958698638649" order="3" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsOperatingLossCarryforwards" xlink:label="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_637195958698638649" xlink:to="us-gaap_DeferredTaxAssetsOperatingLossCarryforwards_637195958698638649" order="4" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch" xlink:label="us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_637195958698638649" xlink:to="us-gaap_DeferredTaxAssetsTaxCreditCarryforwardsResearch_637195958698638649" order="5" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_DeferredTaxAssetsOperatingLeaseLiabilities" xlink:label="ruby_DeferredTaxAssetsOperatingLeaseLiabilities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_637195958698638649" xlink:to="ruby_DeferredTaxAssetsOperatingLeaseLiabilities_637195958698638649" order="6" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities" xlink:label="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsGross_637195958698638649" xlink:to="us-gaap_DeferredTaxAssetsTaxDeferredExpenseReservesAndAccrualsAccruedLiabilities_637195958698638649" order="7" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredIncomeTaxLiabilities" xlink:label="us-gaap_DeferredIncomeTaxLiabilities_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:to="us-gaap_DeferredIncomeTaxLiabilities_637195958698638649" order="2" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_DeferredTaxLiabilitiesDepreciationAndOther" xlink:label="ruby_DeferredTaxLiabilitiesDepreciationAndOther_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_637195958698638649" xlink:to="ruby_DeferredTaxLiabilitiesDepreciationAndOther_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxLiabilitiesLeasingArrangements" xlink:label="us-gaap_DeferredTaxLiabilitiesLeasingArrangements_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredIncomeTaxLiabilities_637195958698638649" xlink:to="us-gaap_DeferredTaxLiabilitiesLeasingArrangements_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_DeferredTaxAssetsValuationAllowance" xlink:label="us-gaap_DeferredTaxAssetsValuationAllowance_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_DeferredTaxAssetsLiabilitiesNet" xlink:to="us-gaap_DeferredTaxAssetsValuationAllowance_637195958698638649" order="3" use="optional" weight="-1" priority="1"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureLeasesMinimumLeasePaymentsDetailsCalc2" xlink:type="extended" xlink:title="41202 - Disclosure - Leases - Minimum lease payments (Details) -calc 2"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityUndiscountedExcessAmount_637195958698638649" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseLiability" xlink:label="us-gaap_OperatingLeaseLiability_637195958698638649"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_OperatingLeaseLiability_637195958698638649" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDue"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueCurrent_637195958698795183" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInTwoYears_637195958698795183" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInThreeYears_637195958698795183" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFourYears_637195958698795183" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueInFiveYears_637195958698795183" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter" xlink:label="us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_OperatingLeasesFutureMinimumPaymentsDue" xlink:to="us-gaap_OperatingLeasesFutureMinimumPaymentsDueThereafter_637195958698795183" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureLeasesMinimumLeasePaymentsDetails" xlink:type="extended" xlink:title="41302 - Disclosure - Leases - Minimum lease payments (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueAfterYearFive_637195958698795183" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFive_637195958698795183" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearFour_637195958698795183" order="3" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearThree_637195958698795183" order="4" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueYearTwo_637195958698795183" order="5" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths" xlink:label="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDue" xlink:to="us-gaap_LesseeOperatingLeaseLiabilityPaymentsDueNextTwelveMonths_637195958698795183" order="6" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureLeasesSubleaseDetails" xlink:type="extended" xlink:title="41303 - Disclosure - Leases - Sublease (Details)"> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivable" xlink:label="ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivable"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivableCurrent" xlink:label="ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivableCurrent_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivable" xlink:to="ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivableCurrent_637195958698795183" order="1" use="optional" weight="1" priority="1"/> |
| | <loc xlink:type="locator" xlink:href="ruby-20191231.xsd#ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivableInTwoYears" xlink:label="ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivableInTwoYears_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivable" xlink:to="ruby_LesseeOperatingSubleaseFutureMinimumPaymentsReceivableInTwoYears_637195958698795183" order="2" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| <calculationLink xlink:role="http://www.rubiustx.com/role/DisclosureLeasesLeasePortfolioDetails" xlink:type="extended" xlink:title="41304 - Disclosure - Leases - Lease Portfolio (Details)"> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_LeaseCost" xlink:label="us-gaap_LeaseCost"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_OperatingLeaseCost" xlink:label="us-gaap_OperatingLeaseCost_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LeaseCost" xlink:to="us-gaap_OperatingLeaseCost_637195958698795183" order="1" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_ShortTermLeaseCost" xlink:label="us-gaap_ShortTermLeaseCost_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LeaseCost" xlink:to="us-gaap_ShortTermLeaseCost_637195958698795183" order="2" use="optional" weight="1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_SubleaseIncome" xlink:label="us-gaap_SubleaseIncome_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LeaseCost" xlink:to="us-gaap_SubleaseIncome_637195958698795183" order="3" use="optional" weight="-1" priority="2"/> |
| | <loc xlink:type="locator" xlink:href="http://xbrl.fasb.org/us-gaap/2019/elts/us-gaap-2019-01-31.xsd#us-gaap_VariableLeaseCost" xlink:label="us-gaap_VariableLeaseCost_637195958698795183"/> |
| | <calculationArc xlink:type="arc" xlink:arcrole="http://www.xbrl.org/2003/arcrole/summation-item" xlink:from="us-gaap_LeaseCost" xlink:to="us-gaap_VariableLeaseCost_637195958698795183" order="4" use="optional" weight="1" priority="2"/> |
| | </calculationLink> |
| </linkbase> |